From: Christophe Calves Date: 2009-03-19T04:33:40+09:00 Subject: [ruby-core:22933] [Bug #1302] Strange behavior of callcc Bug #1302: Strange behavior of callcc http://redmine.ruby-lang.org/issues/show/1302 Author: Christophe Calves Status: Open, Priority: Normal Category: core, Target version: 1.9.1 ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux] 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. ---------------------------------------- http://redmine.ruby-lang.org