Project

General

Profile

Actions

Bug #1302

closed

Strange behavior of callcc

Added by Sarwen (Christophe Calves) almost 16 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux]
Backport:
[ruby-core:22933]

Description

=begin
The code runs "[0].map" with a block which uses callcc to stop the execution of map and return the continuation. Later this continuation is called three times with three different values. The expected behavior is that these calls should result in three different computations. Each computation being the mapping with the corresponing value. Instead, the result is very strange.
=end


Files

callcctest.rb (2.38 KB) callcctest.rb Sarwen (Christophe Calves), 03/19/2009 04:36 AM
testcallcc.scm (937 Bytes) testcallcc.scm Sarwen (Christophe Calves), 03/20/2009 01:27 AM
callcctest_demo_map.rb (6.69 KB) callcctest_demo_map.rb Sarwen (Christophe Calves), 03/20/2009 11:44 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0