[parenscript-devel] Bug: let within an outer let's init-form

Andy Peterson andy.arvid at gmail.com
Wed Oct 24 12:50:43 UTC 2012


If you use a let within the init-form of an outer let, the result is
invalid javascript code.

Here is a simplified example:

(ps (let ((x (let ((y (a)))
       (b)
               y)))
      (1+ x)))

==>

"(function () {
    var y;
    var x = (y = a(), (b(), y));
    return x + 1;
})();"

Not that I would normally write such code, but the inner "let" was
generated by a macro.
And many macros use "let"* *with gensyms.  In my case, the macro used
"ps-once-only".

Andy Peterson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20121024/d3d12737/attachment.html>


More information about the parenscript-devel mailing list