[armedbear-devel] Package redefinition issue in REPL.

Pascal J. Bourguignon pjb at informatimago.com
Fri Apr 27 12:06:05 UTC 2012


wl chiu <wlclive at live.com> writes:

> Thank you very much!  I guess for now I have to rely on the function
> "export" during the development.  I do hope one day the modification
> behavior will be implemented :)

Why wait? This is lisp!  

(shadow 'defpackage)

(defmacro defpackage (…)
   `(eval-when (…)
      (if (find-package name)
         (progn
            (rename-package …)
            (intern …)
            (import …)
            (export …)
            …
            ',name)
        (cl:defpackage …))))


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





More information about the armedbear-devel mailing list