[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LOOP CONTINUE STATEMENT
- To: MOON@SCRC-TENEX, SMATT@MIT-OZ
- Subject: LOOP CONTINUE STATEMENT
- From: Matt BenDaniel <SMATT@MIT-OZ>
- Date: Wed ,11 May 83 03:25:00 EDT
- Cc: bug-LISPM@MIT-OZ, dove@MIT-DSPG, LISP-FORUM@MIT-OZ
- In-reply-to: The message of 11 May 83 02:43-EDT from MOON at SCRC-TENEX
A CONTINUE statement should mean skipping executing any code lexically
after it on the current iteration. This could, of course, be a problem
in the following:
. . . (loop for x = 0 then (1+ x)
IF (> x 3)
CONTINUE
until (> x 7))
However, this is the problem of the coder. If there are other reasons
why implementing (or specifying) the function of a CONTINUE statement,
how about constraining the location of an IF-CONTINUE sequence in a
LOOP body in a manner similar to the IF-DO sequence, where iteration is
not allowed to follow body code. Also, what about a CONTINUE-NAMED
feature for NAMED loops?