Lisp HUG Maillist Archive

MAKUNBOUND and DEFCONSTANTs

Hi

here is the code snippet (LWM 5.1)


CL-USER 30 > (defconstant +zot+ 42)
+ZOT+

CL-USER 31 > +zot+
42

CL-USER 32 > (makunbound '+zot+)

Error: +ZOT+ is a constant and cannot be set or bound.
   1 (continue) Change +ZOT+ anyway.
   2 (abort) Return to level 0.
   3 Return to top loop level 0.

Type :b for backtrace, :c <option number> to proceed,  or :? for  
other options

CL-USER 33 : 1 >


I tend to agree (due to the hermeneutics of the DEFCONSTANT CLHS  
entry) but other CLs don't.  The MAKUNBOUND can be thought of as  
succeding.

What is the opinion here?

Marco



--
Marco Antoniotti, Associate Professor				tel.	+39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043
Viale Sarca 336
I-20126 Milan (MI) ITALY

Please note that I am not checking my Spam-box anymore.






Updated at: 2020-12-10 08:43 UTC