help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Working with constansts


From: Richard Riley
Subject: Re: Working with constansts
Date: Sun, 10 May 2009 18:20:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> Decebal <CLDWesterhof@gmail.com> writes:
>
>> I would like to work with constants in my elisp code. I thought that I
>> could do this with defconst, but that doen not work.
>> After:
>>     (defconst dummy "testing")
>> The variable dummy has the value "testing".
>> But after:
>>     (setq dummy "changed")
>> The variable dummy has the value "changed".
>> What am I doing wrong.
>
> You're still thinking that constants don't change or that variables do.
>
> If you don't want to change the value of a constant, then don't change
> it.

Why is it called a constant if its not enforced?


reply via email to

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