[parenscript-devel] Operator precedence bug
Vladimir Sedach
vsedach at gmail.com
Sun Feb 5 21:10:44 UTC 2012
Just pushed a patch for this.
I know I saw a similar example with string concatenation somewhere in
a book or on the web before, but it didn't occur to me until now that
this means that '+' is not associative in JavaScript.
Thanks for the bug report!
On Tue, Jan 31, 2012 at 3:31 PM, Daniel Gackle <danielgackle at gmail.com> wrote:
> (let ((str "a")
> (n 1))
> (+ str (+ n 1)))
>
> should produce "a2", but instead compiles to "str + n + 1" and produces
> "a11".
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
More information about the parenscript-devel
mailing list