* bug#21900: map is not continuation-safe
@ 2015-11-13 8:34 Zefram
2016-06-20 16:01 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Zefram @ 2015-11-13 8:34 UTC (permalink / raw)
To: 21900
With Guile 2.0.11:
scheme@(guile-user)> (define cc #f)
scheme@(guile-user)> (map (lambda (v) (if (= v 0) (call/cc (lambda (c) (set! cc c) 0)) (+ v 1))) '(10 20 30 0 40 50 60))
$1 = (11 21 31 0 41 51 61)
scheme@(guile-user)> (cc 5)
$2 = (61 51 41 0 31 5 41 51 61)
It worked correctly in Guile 1.8.
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#21900: map is not continuation-safe
2015-11-13 8:34 bug#21900: map is not continuation-safe Zefram
@ 2016-06-20 16:01 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2016-06-20 16:01 UTC (permalink / raw)
To: Zefram; +Cc: 21900-done
On Fri 13 Nov 2015 09:34, Zefram <zefram@fysh.org> writes:
> With Guile 2.0.11:
>
> scheme@(guile-user)> (define cc #f)
> scheme@(guile-user)> (map (lambda (v) (if (= v 0) (call/cc (lambda (c) (set! cc c) 0)) (+ v 1))) '(10 20 30 0 40 50 60))
> $1 = (11 21 31 0 41 51 61)
> scheme@(guile-user)> (cc 5)
> $2 = (61 51 41 0 31 5 41 51 61)
>
> It worked correctly in Guile 1.8.
"Fixed" in the upcoming 2.2 release, though I think we consider this
more of an implementation detail than a bug.
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-20 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 8:34 bug#21900: map is not continuation-safe Zefram
2016-06-20 16:01 ` Andy Wingo
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).