[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hash strangeness
From: |
Barry Margolin |
Subject: |
Re: hash strangeness |
Date: |
Sun, 02 Nov 2014 17:48:09 -0500 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.12618.1414961152.1147.help-gnu-emacs@gnu.org>,
Tom <adatgyujto@gmail.com> wrote:
> Thien-Thi Nguyen <ttn <at> gnu.org> writes:
>
> >
> > () Tom <adatgyujto <at> gmail.com>
> > () Sun, 2 Nov 2014 12:09:31 +0000 (UTC)
> >
> > At least I did not expect that. :)
> >
> > a quote before literal data w/ latent intent to modify?
>
> I expect '(a b c) to create a new list with these symbols
> every time it runs.
Why do you expect that?
'(a b c) is short for (quote (a b c)). quote returns its argument, it
doesn't make a copy of it.
I'm sure somewhere in the Elisp programming manual it mentions that you
shouldn't use destructive functions on literal lists, like the Common
Lisp spec does.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***