diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-30 16:21:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-30 16:21:53 -0700 |
commit | 12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab (patch) | |
tree | fbd66a2b54f14f0b2abac3947066ca23187c7112 | |
parent | 960d5e602c3074afea907b35686482393ada6255 (diff) | |
download | txr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.tar.gz txr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.tar.bz2 txr-12bd2bfc9aaa72cb325428f898cf0cbdd4b6c8ab.zip |
doc: codify infinite looping behavior of each.
* txr.1: the each, append-each and all other variants of
operators exhibit inifite looping if the list of bindings is
empty. In that case, the terminating condition that at least
one list is empty, is never true. The behavior is consistent
under compilation and interpretation, so let's just
document it.
-rw-r--r-- | txr.1 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15271,6 +15271,12 @@ determines the number of iterations, so if any of the evaluate to an empty list, the body is not executed. +If the list of +.cblk +.meti >> ( syn << init-form ) +.cble +pairs itself is empty, then an infinite loop is specified. + The body forms are enclosed in an anonymous block, allowing the .code return operator to terminate the loop prematurely and optionally specify |