Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AND may not do the right thing in SICL LOOP #220

Open
robert-strandh opened this issue Oct 26, 2021 · 1 comment
Open

AND may not do the right thing in SICL LOOP #220

robert-strandh opened this issue Oct 26, 2021 · 1 comment

Comments

@robert-strandh
Copy link
Owner

Example: (loop for n from 1 to 3 and x = n collect (list n x))
return ((1 1) (2 2) (3 3)), but the use of and may mean
that N is NIL the first time around, so this is the wrong answer if so.

@skempf
Copy link

skempf commented Oct 26, 2021

There is one test in the ANSI suite for using the and iteration clause grouping (reference loop.17.21), which happens to be commented out in Code/Loop/Test/loop17.lisp.

As an aside, test loop.17.20 is also commented out, but sicl-loop passes this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants