[parenscript-devel] Scoping bug with lambdas

Vladimir Sedach vsedach at gmail.com
Tue Mar 1 03:38:33 UTC 2011


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 at 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 at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>




More information about the parenscript-devel mailing list