けいじゅ@日本ラショナルソフトウェアです.

In [ruby-dev :3260 ] the message: "[ruby-dev:3260] Re: [BUG]
Thread.value ", on Jul/10 17:25(JST) Yukihiro Matsumoto writes:

>まつもと ゆきひろです

>ruby 1.1b9_30では期待通り動作しているように思います.

>irb(main):001:0> th = Thread.start do
>irb(main):002:1* raise "foo"
>irb(main):003:1> end
>SyntaxError: compile error
>(irb):1: parse error
>(irb):1
>(irb_local_binding):1:in `eval'
>irb(main):004:0> th = Thread.start{raise "foo"}
>#<Thread:0x4013000c>
>irb(main):005:0> Thread.join th
>#<Thread:0x4013000c>
>irb(main):006:0> th.value
>RuntimeError: foo
>(irb):4
>(irb):6:in `value'
>(irb):6
>(irb_local_binding):1:in `eval'
>irb(main):007:0> 

駄目みたいです.

dim% irb
irb(main):001:0> th = Thread.start do
irb(main):002:1*   raise "foo"
irb(main):003:1> end
SyntaxError: compile error
(irb):1: parse error
(irb):1
(irb_local_binding):1:in `eval'
irb(main):004:0> th = Thread.start {
irb(main):005:1*  raise "foo"
irb(main):006:1> }
#<Thread:0x400fd918>
irb(main):007:0> Thread.join th
#<Thread:0x400fd918>
irb(main):008:0> th.value
(irb):8: [BUG] Segmentation fault
Abort

4-6行目あたりも味噌らしいです.

# ruby-1.1b9_30 + patch-[ruby-list:8680] + patch-[ruby-dev:3257]です. 

__
................................石塚 圭樹@日本ラショナルソフトェア...
----------------------------------->> e-mail: keiju / rational.com <<---