macro returning more than one form

Pascal J. Bourguignon pjb at informatimago.com
Fri Mar 14 20:00:49 UTC 2014


Dave Cooper <david.cooper at genworks.com> writes:

> 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. 

This has nothing to do with macros.

Please read: http://www.nhplace.com/kent/PS/Ambitious.html

-- 
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ?  C'est le moment d'acheter !"



More information about the pro mailing list