summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-01-06 14:30:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-01-06 14:30:18 -0800
commit7efce88113302cae30a6c0af4319b80882abb7db (patch)
tree2bc4379d742768b8f4dbb70b249a76622ec50735 /txr.1
parentad54f9d10165be47b34e6e09d009d115e3808f49 (diff)
downloadtxr-7efce88113302cae30a6c0af4319b80882abb7db.tar.gz
txr-7efce88113302cae30a6c0af4319b80882abb7db.tar.bz2
txr-7efce88113302cae30a6c0af4319b80882abb7db.zip
Allow last var to be omitted in whilet.
* eval.c (me_whilet): insert gensym if last var is missing. Warn if init-form looks like a variable. * txr.1: Documented by copy and paste from iflet.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.117
1 files changed, 17 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index e1ef3748..0ef550de 100644
--- a/txr.1
+++ b/txr.1
@@ -13757,6 +13757,23 @@ loop is thus terminated by an explicit
a return value can be specified. Under normal termination, the return value is
.codn nil .
+In the syntax, a small convenience is permitted. Instead of the last
+.cblk
+.meti >> ( sym << init-form )
+.cble
+it is permissible for the syntax
+.cblk
+.meti <> ( init-form )
+.cble
+to appear, the
+.meta sym
+being omitted. A machine-generated variable is substituted
+in place of the missing
+.meta sym
+and that variable is then initialized from
+.meta init-form
+and used as the basis of the test.
+
.TP* Examples:
.cblk
;; read lines of text from *std-input* and print them,