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

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

Re: hash strangeness


From: Tom
Subject: Re: hash strangeness
Date: Sun, 2 Nov 2014 12:09:31 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Tom <adatgyujto <at> gmail.com> writes:
> 
>        (unless info
>          (setq info '(count 0)))

It seems it works properly if I use list instead:

        (unless info
          (setq info (list 'count 0)))


Looks like '() is treated like a constant and the same value
is used all the time, though I'm not sure this is what the 
user expects here. 

At least I did not expect that. :)






reply via email to

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