[Openmcl-devel] with-package

Pascal J. Bourguignon pjb at informatimago.com
Sat Jan 12 05:36:39 PST 2013


Taoufik Dachraoui <dachraoui.taoufik at gmail.com> writes:

> Hi
>
> I am trying to define a macro as follows:
>
> (defmacro with-package ((&rest names) &body body)
>   `(progn
>      (use , at names)
>      , at body
>      (unuse ,@(reverse names))))
>
> The issue is that the body may use symbols defined in one of
> the names (packages) and not in the current package

"Current" WHEN?



> How to do this? I tried with eval-when but I do not know how to use
> it correctly

What are the situations available to eval-WHEN?


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.




More information about the Openmcl-devel mailing list