[Openmcl-devel] Docs on defpackage, in-package, use-package, provides and require

Rick Taube taube at uiuc.edu
Tue Aug 17 16:24:43 PDT 2004


your export statement is export the symbol |barzz| not BARZZ. that is, 
your lower-case string is being preserved in the symbol's name. since 
lisp can be set to preserve case sensitivity i tend to avoid strings 
altogether and use uninterned symbols instead.	(:export #:barzz)
I dont export "regular" (interned) symbols because these may conflict 
with symbols in the package in which the defpackage occurs.



> (unless (find-package "junk-unit")
>   (defpackage "junk-unit"
>     (:nicknames :junk-unit :ju)
>     (:export "barzz")))

>
> ;; This line is required to get exports.  Why?
> ;; (export '(barzz))
>




More information about the Openmcl-devel mailing list