bug-guile
[Top][All Lists]
Advanced

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

bug#38263: Bug in srfi-11


From: Tim Gesthuizen
Subject: bug#38263: Bug in srfi-11
Date: Tue, 19 Nov 2019 16:54:57 +0100
User-agent: mu4e 1.2.0; emacs 26.3

Hi,
I had a look today into the srfi-11 specificiation. It requires that the
variables are bound to fresh locations so let me rephrase the bug:

> (let ((a 1)
>       (b (let-values (((a . b) (values 2 3))
>                        (c (begin (set! a 9) 4)))
>            (list a b c))))
>   (cons a b))

Evaluates to `(1 9 (3) (4))` while it should evaluate to
`(9 2 (3) (4))`.

Hope this helps,
Tim.




reply via email to

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