[Armedbear-devel] defpackage not standard?

Pascal J. Bourguignon pjb at informatimago.com
Thu May 22 19:51:50 UTC 2014


bonasso <bonasso at traclabs.com> writes:

> In Common Lisp, I believe defpackage is to either define or
> *redefine* a package.

You're believing falsehoods.  
I'll leave it up to you to draw the conclusions that should be drawn…


> I've found that in abcl if the package is
> already defined, defpackage won't redefine it (apparently).

This is conforming.


> Is this a bug?

It is not.


You could use this implementation of defpackage:
https://gitorious.org/com-informatimago/com-informatimago/source/2b229c2b45c230278e80217c908092fe76871b54:common-lisp/lisp-reader/package-mac.lisp#L173
https://gitorious.org/com-informatimago/com-informatimago/source/2b229c2b45c230278e80217c908092fe76871b54:common-lisp/lisp-reader/package-fun.lisp#L1552
instead of cl:defpackage (but you'd have to extract it from there).


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


_______________________________________________
Armedbear-devel mailing list
Armedbear-devel at common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel


More information about the armedbear-devel mailing list