4 ms·
Seeing how this guy comments about loop, be a little careful when using it. There is no formal standard on how to implement loop, so what you write might result
by JeanPierre 16y ago
Seeing how this guy comments about loop, be a little careful when using it. There is no formal standard on how to implement loop, so what you write might result in different answers depending on what Common Lisp implementation you use. Evaluate these loop-expressions and see what happens (from ANSI Common Lisp by PG):
(loop for y = 0 then z
for x from 1 to 5
sum 1 into z
finally (return (values y z)))
and then evaluate this:
(loop for x from 1 to 5
for y = 0 then z
sum 1 into z
finally (return (values y z)))
- ekiru 16y agoWhat aspects of the actual behavior of loop are unspecified?
- JeanPierre 16y agoHow to combine them is poorly defined and complex. The loop clauses by themselves is not the problem.