From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Basic Emacs Lisp question Date: Tue, 29 Apr 2008 20:56:17 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87od7sa6ke.fsf@kobe.laptop> References: <67p1csF2qe3gfU1@mid.dfncis.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209508848 10838 80.91.229.12 (29 Apr 2008 22:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2008 22:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 00:41:25 2008 connect(): Connection refused 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 1JqyVf-0004R7-AQ for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2008 00:41:15 +0200 Original-Received: from localhost ([127.0.0.1]:36664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqyUy-0004Og-BP for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Apr 2008 18:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:krkZkwwQcOePd3GW6VlzdJ7U5iM= Original-Lines: 16 Original-NNTP-Posting-Host: 77.49.228.110 Original-X-Trace: news.sunsite.dk DXC=e@PC`SbF60Dc5QH[6O^X]LYSB=nbEKnkKl2^feVC_<6FL^MjGbH?lJH1TkjLNoDA Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:158269 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:53635 Archived-At: On Tue, 29 Apr 2008 17:49:19 +0200, Matthias Pfeifer 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.