[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOOP CONTINUE STATEMENT



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?