From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kjetil Svalastog Matheussen Newsgroups: gmane.lisp.guile.user Subject: Re: Order of the evaluation of elements in a quasiquote list. Date: Sun, 3 Apr 2005 13:38:04 +0200 (CEST) Message-ID: References: <424FB34D.6040304@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1112528513 29230 80.91.229.2 (3 Apr 2005 11:41:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2005 11:41:53 +0000 (UTC) Cc: guile-user@gnu.org, Kjetil Svalastog Matheussen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 03 13:41:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DI3To-0000y6-M6 for guile-user@m.gmane.org; Sun, 03 Apr 2005 13:41:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI3VT-0007xB-Gi for guile-user@m.gmane.org; Sun, 03 Apr 2005 07:43:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DI3VH-0007ux-Ih for guile-user@gnu.org; Sun, 03 Apr 2005 07:42:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DI3VC-0007sG-1o for guile-user@gnu.org; Sun, 03 Apr 2005 07:42:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI3VB-0007rQ-NO for guile-user@gnu.org; Sun, 03 Apr 2005 07:42:49 -0400 Original-Received: from [129.240.130.16] (helo=pat.uio.no) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DI3R4-0007vx-CK for guile-user@gnu.org; Sun, 03 Apr 2005 07:38:34 -0400 Original-Received: from mail-mx6.uio.no ([129.240.10.47]) by pat.uio.no with esmtp (Exim 4.43) id 1DI3Qf-0005m3-DC; Sun, 03 Apr 2005 13:38:09 +0200 Original-Received: from notam02.uio.no ([129.240.197.34]) by mail-mx6.uio.no with esmtp (Exim 4.43) id 1DI3Qd-0001LW-C9; Sun, 03 Apr 2005 13:38:07 +0200 Original-Received: from kjetism (helo=localhost) by notam02.uio.no with local-esmtp (Exim 4.44) id 1DI3Qa-0003lG-VP; Sun, 03 Apr 2005 13:38:04 +0200 X-X-Sender: kjetism@notam02.uio.no Original-To: Neil Jerram In-Reply-To: <424FB34D.6040304@ossau.uklinux.net> X-UiO-Spam-info: not spam, SpamAssassin (score=-5.298, required 12, autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.52, UIO_MAIL_IS_INTERNAL -5.00) 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:4334 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4334 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)? Also, I'm seeing different behaviour in the order of evaluation between 1.6.4 and 1.7 (doesn't have the code available now). I think that is really bad actually... -- _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user