macro returning more than one form

Terje Norderhaug terje at in-progress.com
Fri Mar 14 19:49:58 UTC 2014


On Fri, Mar 14, 2014 at 8: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.
>

Wrap the body in eval-when.

-- Terje Norderhaug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20140314/142f1678/attachment.html>


More information about the pro mailing list