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

Re: loop macro, "for across" expansion fails

Lauri Siponen <siponen@cs.hut.fi> writes:

> Loop macro expander fails when a "for across" construct
> is followed by other iteration constucts.

This is a bug in CLISP and will be fixed in the next release,

> > (loop for a across "abc" for b across "123" collect a collect b)
> *** - AREF: index 3 for "abc" is out of range

As a temporary workaround, you can join the FOR clauses using AND.
(loop for a across "abc" and for b across "123" collect a collect b)

                    Bruno Haible