[parenscript-devel] Scoping bug with lambdas
Hi, Here's the misbehaviour: (ps (let ((x 5)) (let ((x 7)) (funcall (lambda (x) (+ x 9)) x)))) => "var x = 5; var x51 = 7; (function (x) { return x51 + 9; })(x51);" Obviously the X inside the lambda body can remain just plain X since it is bound in a new scope. Scott
Just pushed a fix. Thanks for the bug report. I think I'm going to do a release later this week. Vladimir On Thu, Feb 24, 2011 at 11:09 PM, <sblist@me.com> wrote:
Hi,
Here's the misbehaviour:
(ps (let ((x 5)) (let ((x 7)) (funcall (lambda (x) (+ x 9)) x))))
=>
"var x = 5; var x51 = 7; (function (x) { return x51 + 9; })(x51);"
Obviously the X inside the lambda body can remain just plain X since it is bound in a new scope.
Scott
_______________________________________________ parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
participants (2)
-
sblist@me.com
-
Vladimir Sedach