On Fri, Mar 14, 2014 at 11:45 AM, Paul Tarvydas <paultarvydas@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