Fiber ignores ensure clause

Issue #595 has been updated by Koichi Sasada.

未だに考え中ですが,これは 1.9.3 には仕様変更になるので入りませんよね?

Bug #595: Fiber ignores ensure clause
http://redmine.ruby-lang.org/issues/595

Author: Koichi Sasada
Status: Assigned
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2010-01-13) [i386-mingw32]

=begin
Ruby プロセス終了時,Fiber が ensure を無視します.
これは,前から直そうと思って手がついていなかった問題です.
10月末までには直そうと思います.結構複雑なので,後回しにしていましました.

fib = Fiber.new{
begin
Fiber.yield :ok
ensure
puts “should be print out”
end
}
p fib.resume
=end

$B$^$D$b$H(B $B$f$-$R$m$G$9(B

In message “Re: [ruby-dev:43715] [Ruby 1.9 - Bug #595] Fiber ignores
ensure clause”
on Sat, 11 Jun 2011 14:52:03 +0900, Koichi Sasada
[email protected] writes:

|[email protected]$K9M$(Cf$G$9$,!$$3$l$O(B 1.9.3 $B$K$O;EMMJQ99$K$J$k$N$GF~$j$^$;$s$h$M!)(B

$B$3$NF0:n$O%P%[email protected]$H9M$($F$$$k$N$G!"(BYugui$B$5$s$,[email protected]$7$J$$8B$j!"(B
$BD>$;$k$N$G$"$l$P(B1.9.3$B$GD>$;$P$h$$$H;W$$$^$9!#4V$K9g$o$J$$$J(B
$B$i$7$g$&$,$J$$!#(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs