summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-06-13 06:55:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-06-13 07:53:24 -0700
commitbe4b8ea34756ac7b13c182573c952c21e4c11777 (patch)
tree27df39f8fe22541e975e8966ac0a232e48f032bc /stdlib
parentecb2cd4a54505d3068cad1faa9bf02c28162bc55 (diff)
downloadtxr-be4b8ea34756ac7b13c182573c952c21e4c11777.tar.gz
txr-be4b8ea34756ac7b13c182573c952c21e4c11777.tar.bz2
txr-be4b8ea34756ac7b13c182573c952c21e4c11777.zip
for/for*: stricter syntax check.
* eval.c (me_for): Require at least one argument. However, we let the init-forms continue to be optional and document it. * txr.1: Refer to for and for* as macros, since they have been since 2016. The omission of the inc-form list is shown as a second variant of the syntax. This is to avoid misleading the reader into thinking that the the inc-form list can be omitted while body forms are present. A spurious paragraph reiterating that the macros establish an anonymous block is removed. That extra text was present in the first draft written in 2011, and maintained since. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/doc-syms.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index 7b9ab9fa..ba518652 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -797,8 +797,8 @@
("fnm-period" "N-0330E15A")
("fnmatch" "N-03F8FF75")
("fnr" "N-02E33A82")
- ("for" "N-031372ED")
- ("for*" "N-031372ED")
+ ("for" "N-01F3471B")
+ ("for*" "N-01F3471B")
("force" "N-0307223D")
("force-break" "N-03B5FB1D")
("forget" "N-02A1EE04")