Hi Joe,

That's not really what `define-constant` is for. Here, "constant" means
"constant value", not "lexical identifier that can't be changed".

Even so, the compiler does happen to do what you're expecting (as
opposed to the interpreter, where `define-constant` is equivalent to
`define`):

    $ cat foo.scm
    (define-constant test1 "initial value")
    (define test1 "I got changed")
    (print test1)
    $ csc foo.scm
    $ ./foo
    initial value

Cheers,

Evan

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to