[Bese-devel] Two Parenscript expansion bugs.
Marijn Haverbeke
marijnh at gmail.com
Fri Nov 10 12:13:32 UTC 2006
Two cases in which the expanded code does not look the way it should:
CL-USER> (js:js* '(.match (+ "" x) "foo"))
"'' + x.match('foo');"
CL-USER> (js:js* '(setf x (+ "before" x "after")))
"x += 'before' + 'after';"
The first is missing parentheses around the "" + x part, the second shows
that parenscript is trying to be a little too clever by realizing that + is
commutative, except that for strings it isn't.
Marijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20061110/bf41abb2/attachment.html>
More information about the bese-devel
mailing list