guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Order of the evaluation of elements in a quasiquote list.


From: Kjetil Svalastog Matheussen
Subject: Re: Order of the evaluation of elements in a quasiquote list.
Date: Sun, 3 Apr 2005 13:38:04 +0200 (CEST)

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...

-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]