Cannot use macrolet inside iterate forms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ITERATE macro |
New
|
Undecided
|
Unassigned |
Bug Description
From the iterate website: http://
=======
(iterate (for i from 0 to 20)
(macrolet ((collect-
`(when (zerop (mod ,variable ,divisor))
(collect ,variable into ,result-var))))
(collect-
(finally (return (values result-3 result-5))))
would be nice to have. Currently has to be rewritten:
(macrolet ((collect-
`(when (zerop (mod ,variable ,divisor))
(collect ,variable into ,result-var))))
(iterate (for i from 0 to 20)
(collect-
(finally (return (values result-3 result-5)))))
of course, this does not work in all cases.
=======