redefined constant value

"Denis Mashkevich" <[email protected]> Sun, 26 Oct 2003 16:28:07 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
Here's the problem:

(defconstant +a+ 22)
> +A+

(defun foo ()
    +a+)
> FOO

(foo)
> 22

;redefining the constant:
(defconstant +a+ 33)
> ;;; Warning: Redefining constant +A+ with previous value 22 and new 
value 33
> +A+

(foo)
> 22


;redefining the function
(defun foo ()
     +a+)
> FOO

(foo)
> 33


BTW, CLISP doesn't exhibit this behaviour.

                 Thanks, Denis.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/