Subject: bug#21900: closed (Re: bug#21900: map is not continuation-safe)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 20 Jun 2016 16:02:01 +0000

Your bug report

#21900: map is not continuation-safe

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
21900: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21900
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#21900: map is not continuation-safe
From: Andy Wingo <[email-masked]>
To: Zefram <[email-masked]>
Cc: [email-masked]
Date: Mon, 20 Jun 2016 18:01:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On Fri 13 Nov 2015 09:34, Zefram <[email-masked]> 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

Subject: map is not continuation-safe
From: Zefram <[email-masked]>
To: [email-masked]
Date: Fri, 13 Nov 2015 08:34:21 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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