From: Tanaka Akira Date: 2002-10-13T01:37:31+09:00 Subject: [ruby-dev:18510] Re: How to raise LocalJumpError with next and redo? In article <200210121602.g9CG2ZY01316@sharui.nakada.kanuma.tochigi.jp>, nobu.nakada@nifty.ne.jp writes: > $ ruby -v -e 'def foo;next;end; foo rescue p $!' > ruby 1.7.3 (2002-10-10) [i686-linux] > # $B$*$)!#$J$k$[$I!#(B > $ ruby -e next > -e:1: unexpected next > > $B$H$+!#(B $B$3$C$A$O;n$7$?$s$G$9$,!"$3$l$C$F(B LocalJumpError $B$J$s$G$7$g$&$+(B? % ruby -e 'next rescue p $!' -e:1: unexpected next % ruby -e 'eval("next") rescue p $!' -e:1: unexpected next $B$H$$$&$h$&$K(B rescue $B$G$-$J$$$h$&$G$9$7!#(B > Proc$B$+$i$8$c$J$$$G$9$,!#(B Proc $B$+$i=P$9J}K!$O$"$k$s$G$7$g$&$+(B? $B$"$H!"$"$k>l=j$N(B next/redo $B$,(B LocalJumpError $B$r=P$9$3$H$b=P$5$J$$$3$H(B $B$b$"$k>l9g$O$"$k$s$G$7$g$&$+(B? -- [$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)