From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoffrey Knauth Newsgroups: gmane.lisp.guile.user Subject: Re: Order of the evaluation of elements in a quasiquote list. Date: Sun, 3 Apr 2005 09:01:03 -0400 Message-ID: References: <424FB34D.6040304@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112533532 8706 80.91.229.2 (3 Apr 2005 13:05:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2005 13:05:32 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 03 15:05:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DI4n7-0006Tp-J4 for guile-user@m.gmane.org; Sun, 03 Apr 2005 15:05:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI4on-0004Qd-Hf for guile-user@m.gmane.org; Sun, 03 Apr 2005 09:07:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DI4oQ-0004IY-2e for guile-user@gnu.org; Sun, 03 Apr 2005 09:06:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DI4oK-0004FV-Tq for guile-user@gnu.org; Sun, 03 Apr 2005 09:06:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI4oK-0004Eg-PV for guile-user@gnu.org; Sun, 03 Apr 2005 09:06:40 -0400 Original-Received: from [64.78.83.231] (helo=smtp2.suscom.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DI4jM-0005Rd-0A for guile-user@gnu.org; Sun, 03 Apr 2005 09:01:32 -0400 Original-Received: from localhost (smtp2.suscom.net [127.0.0.1]) by smtp2.suscom.net (Postfix) with ESMTP id 186F81CDD28 for ; Sun, 3 Apr 2005 08:57:49 -0400 (EDT) Original-Received: from smtp2.suscom.net ([127.0.0.1]) by localhost (smtp2 [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 15435-10 for ; Sun, 3 Apr 2005 08:57:47 -0400 (EDT) Original-Received: from [192.168.29.51] (ip251.214.23.209.susc.suscom.net [209.23.214.251]) by smtp2.suscom.net (Postfix) with SMTP id E4A971CDD12 for ; Sun, 3 Apr 2005 08:57:46 -0400 (EDT) In-Reply-To: Original-To: guile-user@gnu.org X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at suscom.net 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:4337 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4337 By comparison: PLT 299.100 and scsh 0.6.6 return (2 2). JScheme 7.1 and sisc 1.9.7 return (2 1). Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk On Apr 3, 2005, at 07:38, Kjetil Svalastog Matheussen wrote: > On Sun, 3 Apr 2005, Neil Jerram wrote: > >> Kjetil Svalastog Matheussen wrote: >>> Hi, I have recently stumbled upon various bugs in my code >>> because the order of the evaluation of the elements in a quasiquote >>> list changes. >> >> Changes how? Can you give us an example, to make things concrete? > > Sorry, this is the stripped down version of the cause of the bug I'm > finding various places: > > (let ((a 1)) > `( ,(begin (set! a 2) a) > ,a)) > -> (2 1) > > Wouldn't it be better if this one returned (2 2)? _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user