[parenscript-devel] Bug: inconsistent expansion of local macro

Daniel Gackle danielgackle at gmail.com
Thu Sep 13 05:08:05 UTC 2007


When a macro like this:

  (defpsmacro blah (x) 'xyz)

... is shadowed by a local macro like this:

  (ps (defun test1 ()
          (macrolet ((blah (x) `(aref data ,x)))
            (when (blah x)
              (setf (blah x) 123)))))

... it's possible to get an inconsistent macroexpansion:

=>

  "function test1() {
      if (data[x]) {
          xyz = 123;
      };
  };

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20070912/74fb4484/attachment.html>


More information about the parenscript-devel mailing list