Re: [iterate-devel] destructuring-bind bug
Hi,
The following form never terminates. (macroexpand '(iter (for index in '((1 2))) (collect (destructuring-bind (a b) index (+ a b)))))
My version of Iterate not only macroexpands, but it also executes it and yields (3) in CLISP-2.33.some-CVS on Linux, meeting my expectations. For Iterate, it's very important to say which Lisp implementation you're using, since it heavily depends on macroexpansion. Expansion of typical CL macros differ a lot among implementations and this is known to have caused different behaviour of Iterate across implementations. Also, you did not say which version you're using. Please submit details, e.g. Lisp version, what does destructuring-bind macroexpand-1 to, etc. Or forget about this trouble, and merely update Iterate. I believe it's also included with Marc Battyani's cl-pdf and Marco Baringer's UCW and/or arnesi packages. Regards, Jörg Höhle.
On Thu, 17 Feb 2005 09:23:32 +0100 "Hoehle, Joerg-Cyril" <Joerg-Cyril.Hoehle@t-systems.com> wrote:
Hi,
The following form never terminates. (macroexpand '(iter (for index in '((1 2))) (collect (destructuring-bind (a b) index (+ a b)))))
My version of Iterate not only macroexpands, but it also executes it and yields (3) in CLISP-2.33.some-CVS on Linux, meeting my expectations.
I am using iterate 1.3pre1 from the project page on ACL 7 (Windows). The above form also fails on SBCL 0.8.17 (FreeBSD). Jörg's version does not have these problems. So my problem is solved for the moment. Regards, -- Julian Stecklina -- Common Lisp can do what C, C++, Java, PASCAL, PHP, Perl, (you -- -- name it) can do. Here's how: -- -- -- -- http://www.amazon.com/exec/obidos/ASIN/1590592395 --
participants (2)
-
Hoehle, Joerg-Cyril
-
Julian Stecklina