unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Kjetil Svalastog Matheussen <k.s.matheussen@notam02.no>
Cc: guile-user@gnu.org,
	Kjetil Svalastog Matheussen <k.s.matheussen@notam02.no>
Subject: Re: Order of the evaluation of elements in a quasiquote list.
Date: Sun, 3 Apr 2005 13:38:04 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0504031330540.14353@notam02.uio.no> (raw)
In-Reply-To: <424FB34D.6040304@ossau.uklinux.net>

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


  reply	other threads:[~2005-04-03 11:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-02 18:52 Order of the evaluation of elements in a quasiquote list Kjetil Svalastog Matheussen
2005-04-03  9:11 ` Neil Jerram
2005-04-03 11:38   ` Kjetil Svalastog Matheussen [this message]
2005-04-03 11:59     ` rm
2005-04-03 12:09       ` Kjetil Svalastog Matheussen
2005-04-03 13:01     ` Geoffrey Knauth
     [not found] <cmu-lmtpd-25765-1112693521-1@mail-imap5.uio.no>
2005-04-05 14:23 ` Kjetil Svalastog Matheussen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0504031330540.14353@notam02.uio.no \
    --to=k.s.matheussen@notam02.no \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).