[parenscript-devel] Bug: function call doesn't work with symbol macros

Daniel Gackle danielgackle at gmail.com
Sun Nov 1 17:40:19 UTC 2009


Well, the Common Lisp equivalent would be

(symbol-macrolet ((fake #'real))
      (funcall fake 123))

... which does work. But in PS there's only one namespace, of course, so it
seems like the form I quoted is the natural equivalent of this one. No?


On Sun, Nov 1, 2009 at 11:22 AM, Vladimir Sedach <vsedach at gmail.com> wrote:

> It's not supposed to, at least according to Common Lisp. I don't know
> what the exact rationale behind that is, but I suspect it has
> something to do with the fact that you can do the same thing with
> regular macros, and allowing this would be like crossing the function
> and symbol/variable namespaces.
>
> Vladimir
>
> 2009/10/30 Daniel Gackle <danielgackle at gmail.com>:
> > (ps (symbol-macrolet ((fake real))
> >          (fake 123)))
> >
> > =>
> >
> > "fake(123);"
> >
> > _______________________________________________
> > parenscript-devel mailing list
> > parenscript-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
> >
> >
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20091101/1d29a5a6/attachment.html>


More information about the parenscript-devel mailing list