[Bese-devel] Two Parenscript expansion bugs.

Henrik Hjelte henrik at evahjelte.com
Thu Nov 16 00:02:26 UTC 2006


Both (and some related bugs) are fixed and in the darcs repo now.
/Henrik Hjelte

On Fri, 2006-11-10 at 13:13 +0100, Marijn Haverbeke wrote:
> 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
> 
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel




More information about the bese-devel mailing list