From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric McDonald Newsgroups: gmane.lisp.guile.user Subject: Re: Interesting Behavior of 'append!' In Local Context Date: Sat, 17 Oct 2009 20:36:41 -0400 Message-ID: <4ADA6319.1030004@phy.cmich.edu> References: <4ADA4506.4090804@phy.cmich.edu> <2F77A419-E28E-4936-854C-5FAE76D85815@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255826228 30263 80.91.229.12 (18 Oct 2009 00:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 00:37:08 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Oct 18 02:36:58 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzJlX-0006Aa-UN for guile-user@m.gmane.org; Sun, 18 Oct 2009 02:36:56 +0200 Original-Received: from localhost ([127.0.0.1]:43751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzJlX-0004Jy-EI for guile-user@m.gmane.org; Sat, 17 Oct 2009 20:36:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzJlP-0004Gv-Mj for guile-user@gnu.org; Sat, 17 Oct 2009 20:36:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzJlK-0004EW-O9 for guile-user@gnu.org; Sat, 17 Oct 2009 20:36:46 -0400 Original-Received: from [199.232.76.173] (port=50562 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzJlK-0004ER-EW for guile-user@gnu.org; Sat, 17 Oct 2009 20:36:42 -0400 Original-Received: from mta21.charter.net ([216.33.127.81]:34177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzJlK-0007mA-5t for guile-user@gnu.org; Sat, 17 Oct 2009 20:36:42 -0400 Original-Received: from imp10 ([10.20.200.10]) by mta21.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20091018003641.JDJT28381.mta21.charter.net@imp10> for ; Sat, 17 Oct 2009 20:36:41 -0400 Original-Received: from [24.247.173.2] ([24.247.173.2]) by imp10 with smtp.charter.net id u0ch1c00203U7cw050ch4t; Sat, 17 Oct 2009 20:36:41 -0400 X-Authority-Analysis: v=1.0 c=1 a=aNOD7mxu7FEA:10 a=le-hnEoigMjT8qaehNMA:9 a=NwiDUI5JkfpybhnGvDw4-8nXYjMA:4 User-Agent: Thunderbird 2.0.0.23 (X11/20091003) In-Reply-To: <2F77A419-E28E-4936-854C-5FAE76D85815@member.fsf.org> X-Enigmail-Version: 0.95.7 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7451 Archived-At: Stephen Compall wrote: > Literals are literally literal. That is to say: > > (define (itsaliteral) '(42 42)) Thanks, Stephen. I never really looked at quote as declaring a literal. I primarily saw its use for suppressing evaluation inside the quoted entity, and as a convenient shorthand for making lists. I guess it's a convenient shorthand for making _literal_ lists. (And, the Guile documentation even uses the word literal - now that I'm looking for it. ;-) > It is an error to modify literals, but it is also not required by R5RS > to detect and inform of such erroneous modification. It is, however, Fair enough. I certainly wouldn't mind seeing "detect and inform" implemented for this case. As a comparison: if I'm writing C or C++ code, and I try to modify a const value, the compiler is generally going to let me know. Anyway, sorry to trouble the list with a noobish oversight. Regards, Eric