Line_no in trunk when raised in loop

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B

trunk e$B$K$$$$F!"e(Bloop e$B$NCf$GNc30$,H/@8$7$?>l9g$K!"e(B
e$B9THV9f$NI=<($,$
$+$7$$$G$9!#e(B

$ ruby-1.9 -e ’
loop do
raise
end

-e:3:in raise': unhandled exception from -e:3:inblock in ’
from -e:21108:in loop' from -e:21108:in

$ ruby-1.9 -v
ruby 1.9.0 (2007-05-29 patchlevel 0) [i686-linux]

[email protected]$G$9!#e(B

At Tue, 29 May 2007 22:08:11 +0900,
sheepman wrote in [ruby-dev:30831]:

trunk e$B$K$$$$F!"e(Bloop e$B$NCf$GNc30$,H/@8$7$?>l9g$K!"e(B
e$B9THV9f$NI=<($,$
$+$7$$$G$9!#e(B

e$B%V%m%C%/A4HL$G$9$M!#e(B

Index: parse.y

— parse.y (revision 12403)
+++ parse.y (working copy)
@@ -3229,5 +3229,5 @@ do_block : keyword_do_block
/%%%/
dyna_push();

  •  $<num>1 = ruby_sourceline;
    
  •  $<num>$ = ruby_sourceline;
       /*% %*/
       }
    

@@ -3238,5 +3238,5 @@ do_block : keyword_do_block
/%%%/
$$ = NEW_ITER($3,$4);

  •  nd_set_line($$, $<num>1);
    
  •  nd_set_line($$, $<num>2);
     dyna_pop();
       /*%
    

@@ -3370,5 +3370,5 @@ brace_block : ‘{’
/%%%/
dyna_push();

  •  $<num>1 = ruby_sourceline;
    
  •  $<num>$ = ruby_sourceline;
       /*% %*/
       }
    

@@ -3388,5 +3388,5 @@ brace_block : ‘{’
/%%%/
dyna_push();

  •  $<num>1 = ruby_sourceline;
    
  •  $<num>$ = ruby_sourceline;
       /*% %*/
       }

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