From be4b8ea34756ac7b13c182573c952c21e4c11777 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Mon, 13 Jun 2022 06:55:06 -0700 Subject: 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. --- stdlib/doc-syms.tl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib') 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") -- cgit v1.2.3