[parenscript-devel] Syntax error in treating functions as expressions
Vladimir Sedach
vsedach at gmail.com
Wed May 19 16:45:29 UTC 2010
Just pushed a fix. Thanks for the bug report.
Vladimir
2010/5/3 Daniel Gackle <danielgackle at gmail.com>:
> I've finally got back to working through the output of the new PS, and have
> hit another couple of errors. The following form:
> (lambda (x)
> (apply (lambda (y) (bar (1+ y))) x))
> ...compiles to...
> function (x) {
> return function (y) {
> return bar(y + 1);
> }.apply(this, x);
> };
> ... which is a syntax error. Earlier PS put parentheses around the inner
> function, which is correct:
> function (x) {
> return (function (y) {
> return bar(y + 1);
> }).apply(this, x);
> };
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>
More information about the parenscript-devel
mailing list