[#48190] [ruby-trunk - Feature #9816] 文字列内の数字を数値として比較するメソッド — zn@...
Issue #9816 has been updated by Kazuhiro NISHIYAMA.
3 messages
2014/05/08
[ruby-dev:48244] [ruby-trunk - Bug #9727] Array#reject aborts with callcc
From:
usa@...
Date:
2014-05-27 02:53:12 UTC
List:
ruby-dev #48244
Issue #9727 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED
Backported into ruby_2_0_0 at r46155.
----------------------------------------
Bug #9727: Array#reject aborts with callcc
https://bugs.ruby-lang.org/issues/9727#change-46884
* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee:
* Category: core
* Target version: current: 2.2.0
* ruby -v: r45560
* Backport: 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
2.0.0以降で、以下のコードが異常終了します。
~~~ruby
require 'continuation'
cont = nil
a = [*1..10].reject do |i|
callcc{|c| cont = c} if !cont and i == 10
false
end
a.unshift(:x)
cont.call if a.size < 1000
~~~
--
https://bugs.ruby-lang.org/