[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?
- Working with constansts, Decebal, 2009/05/10
- RE: Working with constansts, Drew Adams, 2009/05/10
- Re: Working with constansts, Pascal J. Bourguignon, 2009/05/10
- Message not available
- Re: Working with constansts, Pascal J. Bourguignon, 2009/05/10
- Re: Working with constansts, Richard Riley, 2009/05/10
- Re: Working with constansts, Pascal J. Bourguignon, 2009/05/11
- Re: Working with constansts, Nikolaj Schumacher, 2009/05/12
- Message not available
- Re: Working with constansts, Pascal J. Bourguignon, 2009/05/12