chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Why define-constant is not a constant?


From: Joe Python
Subject: [Chicken-users] Why define-constant is not a constant?
Date: Tue, 8 Dec 2015 01:18:28 -0500


I was expecting the identifier 'test1' to not change by using the define-constant form.
However i was still able to redefine test1? How to tell the chicken compiler to declare test1 to be a constant for real?



------------------------
CHICKEN
(c) 2008-2015, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.10.0 (rev b259631)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2015-08-04 on yves.more-magic.net (Linux)

#;1> (define-constant test1 "initial value")
#;2> (define test1 "I got changed")
#;3> test1
"I got changed"
#;4>

------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]