macro returning more than one form

Dave Cooper david.cooper at genworks.com
Fri Mar 14 16:00:08 UTC 2014


On Fri, Mar 14, 2014 at 11:45 AM, Paul Tarvydas <paultarvydas at gmail.com>wrote:

> What is the best way to write a macro that returns more than one form to
> the top level?  E.g.
>
> (in-package :xxx)
> (defun ...)
>
> I've been wrapping a progn around the result, but LW doesn't like it very
> much, and SBCL seems to hate it.
>


That's a pretty good question. I've never been able to find a way. It feels
like it might go against some kind of fundamental principle of macros.

What does LW and SBCL hate about wrapping toplevel forms in progn?


-- 
My Best,

Dave Cooper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20140314/33351b0f/attachment.html>


More information about the pro mailing list