From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: Re: Basic Emacs Lisp question Date: Mon, 05 May 2008 10:38:35 -0300 Message-ID: <87ve1suazo.fsf@blackbart.sedgenet> References: <67p1csF2qe3gfU1@mid.dfncis.de> <87zlrctlbl.fsf@blackbart.sedgenet> <877iefeobo.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209995130 10167 80.91.229.12 (5 May 2008 13:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 May 2008 13:45:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 05 15:46:07 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jt114-0003kY-6p for geh-help-gnu-emacs@m.gmane.org; Mon, 05 May 2008 15:46:06 +0200 Original-Received: from localhost ([127.0.0.1]:48573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt10M-0000qX-K9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 May 2008 09:45:22 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:QKckbvJCTA1os1jHGeZH+JybzgE= Original-Lines: 37 Original-NNTP-Posting-Host: 142.177.142.39 Original-X-Complaints-To: abuse@aliant.net Original-Xref: shelby.stanford.edu gnu.emacs.help:158402 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53770 Archived-At: Tim X writes: > tyler writes: > >> Matthias Pfeifer 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