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

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

Re: Working with constansts


From: Pascal J. Bourguignon
Subject: Re: Working with constansts
Date: Sun, 10 May 2009 18:19:52 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Decebal <address@hidden> 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.

-- 
__Pascal Bourguignon__


reply via email to

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