[Openmcl-devel] with-package

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Sat Jan 12 05:00:36 PST 2013


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

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

Kind regards
Taoufik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20130112/6019e91d/attachment.htm>


More information about the Openmcl-devel mailing list