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 14:09:15 +0200 (CEST) Message-ID: References: <424FB34D.6040304@ossau.uklinux.net> <20050403115906.GC7630@seid-online.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1112530403 1290 80.91.229.2 (3 Apr 2005 12:13:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2005 12:13:23 +0000 (UTC) Cc: guile-user@gnu.org, Neil Jerram , Kjetil Svalastog Matheussen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 03 14:13:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DI3yb-00033M-IQ for guile-user@m.gmane.org; Sun, 03 Apr 2005 14:13:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI40G-0005Fx-QF for guile-user@m.gmane.org; Sun, 03 Apr 2005 08:14:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DI40B-0005FI-JK for guile-user@gnu.org; Sun, 03 Apr 2005 08:14:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DI40A-0005Dx-0U for guile-user@gnu.org; Sun, 03 Apr 2005 08:14:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI408-0005Cb-Hw for guile-user@gnu.org; Sun, 03 Apr 2005 08:14:48 -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 1DI3vE-0001va-5G for guile-user@gnu.org; Sun, 03 Apr 2005 08:09:44 -0400 Original-Received: from mail-mx6.uio.no ([129.240.10.47]) by pat.uio.no with esmtp (Exim 4.43) id 1DI3up-0001NO-JP; Sun, 03 Apr 2005 14:09:19 +0200 Original-Received: from notam02.uio.no ([129.240.197.34]) by mail-mx6.uio.no with esmtp (Exim 4.43) id 1DI3ul-00048F-Vn; Sun, 03 Apr 2005 14:09:16 +0200 Original-Received: from kjetism (helo=localhost) by notam02.uio.no with local-esmtp (Exim 4.44) id 1DI3ul-0003sg-QN; Sun, 03 Apr 2005 14:09:15 +0200 X-X-Sender: kjetism@notam02.uio.no Original-To: rm@fabula.de In-Reply-To: <20050403115906.GC7630@seid-online.de> X-UiO-Spam-info: not spam, SpamAssassin (score=-5.354, required 12, autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.47, 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:4336 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4336 On Sun, 3 Apr 2005 rm@fabula.de wrote: > On Sun, Apr 03, 2005 at 01:38:04PM +0200, 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)? > > Why do you think that "(2 2)" would be _better_? (How do you define > "better" ?) It just feels more logical, left to right, top to bottom. Thanks for the information, I had a small hope that this was a bug in guile, or that the behaviour could be changed with a switch. I'll fix up my code. -- _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user