Re: FAQ: (re)defining symbols visible from CL package
On Thursday, Jul 24, 2003, at 13:27 America/New_York, David Fox wrote:
>
> Hi
>
> this is probably a FAQ.
>
> Yes :)
>
> I am playing around with Norvig's code. I stashed all of it in a
> package named "PAIP" (the original code assumes everything is put in
> the "CL-USER" package)
>
> When I compile and load the code, I get a continuable error stating
> that I am redefinining a symbol visible from the CL package. (The
> symbol being 'SYMBOL :) ). As it is SYMBOL is neither BOUNDP nor
> FBOUNDP.
>
> True, but it is defined in ANSI Common Lisp, as a system class. I hope
> the code is not trying to define a type or class of this name.
No. It is being defined as a function. (FBOUNDP 'CL:SYMBOL) ==> NIL
>
> Is there a way to override the LW behavior (meaning, by
> avoiding the generation of the continuable error)?
>
> Yes - see
> http://www.lispworks.com/reference/lwm43/LWRM/html/lwref-168.htm
>
> But it would be better to shadow that name in your PAIP package.
Duh! :}
Cheers
Marco
--
Marco Antoniotti
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________