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: tyler
Subject: Re: Basic Emacs Lisp question
Date: Mon, 05 May 2008 10:38:35 -0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Tim X <address@hidden> writes:

> tyler <address@hidden> writes:
>
>> Matthias Pfeifer <address@hidden> writes:
>>
>>> What is the difference between
>>>
>>> (list 0 nil -1)
>>>
>>> and
>>>
>>> '(0 nil -1)
>>>
>>
>> In this instance, nothing. However, ...

> Are you sure there is no difference? In many lisp dialects, the second
> form is more like a constant and cannot be modified in a reliable
> manner - IIRC this is due to how memory is allocated for the
> quoted form. In the first one, memory is allocated dynamically and so
> can be safely modified. 
>

Ah, thanks. Reading over the other posts in this thread, I can see how
this distinction could lead to some hard-to-detect bugs. At least,
they'd be hard for me to detect.

Tyler

-- 
By protecting Net Neutrality, we guarantee that pro-union sites do not
get blocked, that ISPs do not charge anti-competitive 'preference'
fees and that independent media can compete based on content, not
pocketbook, with the largest of publishers.

                                    neutrality.ca -- it's your internet


reply via email to

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