Matthew Danish wrote:
> MEMQ is a function defined in the EXT package, which happens to be used
> by CL-USER in CMUCL.  So you are redefining an implementation-specific
> function, and one that apparently seems to be important for the proper
> functioning of CMUCL.  I think this has come up before.  Whether or not
> CMUCL is right to automatically use EXT in CL-USER, I suggest that when
> working on your own code that you create your own package to do so in.
> 
> Something like:
> 
> (defpackage "MY-CODE"
>   (:use "CL"))
> 
> and then
> 
> (in-package "MY-CODE")
> 
> ;; ...
> 
> This way you know for certain what symbols will be present in your
> package.
> 
> 
> P.S. Why would anyone write MEMQ as a macro?
It's only an macro exercise, thanks for the help!

Giannandrea



Reply via email to