macro returning more than one form
Kenneth Tilton
ken at tiltontec.com
Fri Mar 14 15:53:38 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.
>
I suspect you are making some other mistake, I do that all the time and the
spec says forms in a toplevel progn are effectively toplevel.
Got a mini-example you can share?
-hp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20140314/921444c5/attachment.html>
More information about the pro
mailing list