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

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

Re: Basic Emacs Lisp question


From: Giorgos Keramidas
Subject: Re: Basic Emacs Lisp question
Date: Tue, 29 Apr 2008 20:56:17 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix)

On Tue, 29 Apr 2008 17:49:19 +0200, Matthias Pfeifer <pfemat@web.de> wrote:
> Hello,
>
> What is the difference between
>
> (list 0 nil -1)
>
> and
>
> '(0 nil -1)

In Common Lisp (list 0 nil -1) is required to 'cons' a new list every
time it is called.  Quoting the list as in '(0 nil -1) is not required
to build a new list.  In fact, in compiled code it may reuse the same
static object over and over again.



reply via email to

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