From: Tanaka Akira Date: 2002-10-04T23:03:42+09:00 Subject: [ruby-dev:18457] Re: break from proc-closure In article <1033663928.287610.25914.nullmailer@picachu.netlab.jp>, matz@ruby-lang.org (Yukihiro Matsumoto) writes: > 1.6.7$B$H(BCVS$BHG$GF0:n$,0c$&%9%/%j%W%H$,$$$?$@$1$^$;$s$+!)(B $B$3$s$J$+$s$8$G$9$+$M$'!#(B % ruby -ve ' def f(&block) Thread.start { p [:a, [1].collect(&block)] }.join p :f end p [:b, f { break }] ' ruby 1.6.7 (2002-03-01) [i386-freebsd4.2] -e:4:in `f': break from proc-closure (LocalJumpError) from -e:3:in `join' from -e:3:in `f' from -e:8 % ruby -ve ' def f(&block) Thread.start { p [:a, [1].collect(&block)] }.join p :f end p [:b, f { break }] ' ruby 1.7.3 (2002-10-04) [i386-freebsd4.2] [:a, nil] :f [:b, nil] -- [$BEDCf(B $BE/(B][$B$?$J$+(B $B$"$-$i(B][Tanaka Akira] $B!V$U$($m(B! $B$o$+$a$A$c$s:n@o$G$9$(C"=$B!W(B(Little Worker, $B7KM7@84](B)