# Not ok iterator 80 -- ./sample/test.rb:1104

sample/test.rb e\$B\$,e(B
2e\$B\$D<:GT\$7\$F\$\$\$^\$9\$,!":G=i\$N<:GT\$O<!\$N\$b\$N\$G\$9!#e(B

% ./ruby ./sample/test.rb

not ok iterator 80 – ./sample/test.rb:1104

e\$B<h\$j=P\$7\$F\$_\$k\$H!"<!\$N\$h\$&\$K\$J\$j\$^\$9!#e(B

% ./ruby -ve ’
def proc_call(&b)
b.call
end
def proc_return1
proc_call{return 42}+1
end
p proc_return1()

ruby 1.9.0 (2006-06-17) [i686-linux]
42

e\$B\$3\$l\$,e(B 43 [email protected]\$He(B test.rb
e\$B\$K=q\$\$\$F\$"\$k\$N\$G<:GT\$7\$F\$\$e(B
e\$B\$k\$o\$1\$G\$9\$,!"\$3\$l\$C\$F\$d\$C\$Q\$je(B return
e\$B\$O\$=\$l\$,=q\$\$\$F\$"\$k%a%=%Ce(B
e\$B%I\$r=*N;\$9\$k\$3\$H\$K\$7\$F!"e(B42 e\$B\$N\$[\$&\$,\$h\$/\$J\$\$\$G\$7\$g\$&\$+e(B?

return e\$B\$r=q\$\$\$?%a%=%C%[email protected]\$1\$Ge(B return e\$B\$,\$I\$&F0\$/\$+e(B
e\$B\$o\$+\$i\$J\$\$\$N\$O\$h\$/\$J\$\$\$H;W\$\$\$^\$9!#e(B

e\$B\$^\$D\$b\$He(B e\$B\$f\$-\$R\$m\$G\$9e(B

In message “Re: [ruby-dev:28741] not ok iterator 80 –
./sample/test.rb:1104”
on Sun, 18 Jun 2006 02:42:00 +0900, Tanaka A. [email protected]
writes:
|
|sample/test.rb e\$B\$,e(B 2e\$B\$D<:GT\$7\$F\$\$\$^\$9\$,!":G=i\$N<:GT\$O<!\$N\$b\$N\$G\$9!#e(B
|
|% ./ruby ./sample/test.rb
|…
|not ok iterator 80 – ./sample/test.rb:1104
|…
|
|e\$B<h\$j=P\$7\$F\$_\$k\$H!"<!\$N\$h\$&\$K\$J\$j\$^\$9!#e(B
|
|% ./ruby -ve ’
|def proc_call(&b)
| b.call
|end
|def proc_return1
| proc_call{return 42}+1
|end
|p proc_return1()
|’
|ruby 1.9.0 (2006-06-17) [i686-linux]
|42
|
|e\$B\$3\$l\$,e(B 43 [email protected]\$He(B test.rb e\$B\$K=q\$\$\$F\$"\$k\$N\$G<:GT\$7\$F\$\$e(B
|e\$B\$k\$o\$1\$G\$9\$,!"\$3\$l\$C\$F\$d\$C\$Q\$je(B return e\$B\$O\$=\$l\$,=q\$\$\$F\$"\$k%a%=%Ce(B
|e\$B%I\$r=*N;\$9\$k\$3\$H\$K\$7\$F!"e(B42 e\$B\$N\$[\$&\$,\$h\$/\$J\$\$\$G\$7\$g\$&\$+e(B?

e\$B\$^\$C\$?\$/\$=\$NDL\$j\$G\$9!#%F%9%H\$N\$[\$&\$rD>\$7\$^\$9!#e(B

|return e\$B\$r=q\$\$\$?%a%=%C%[email protected]\$1\$Ge(B return e\$B\$,\$I\$&F0\$/\$+e(B
|e\$B\$o\$+\$i\$J\$\$\$N\$O\$h\$/\$J\$\$\$H;W\$\$\$^\$9!#e(B

e\$B\$^\$"!"86B’E*\$K\$Oe(Blambdae\$B0J30\$G:n\$i\$l\$?%V%m%C%/\$+\$i\$N%j%?!<%s\$Oe(B
e\$B\$=\$l\$r0O\$`%a%=%C%I\$N=*N;\$H\$\$\$&\$3\$H\$K\$7\$?\$\$\$N\$G\$9\$,!“0lHL2=\$9e(B
e\$B\$k\$N\$Oe(Bdefine_methode\$B\$N\$h\$&\$JNc30\$,\$”\$C\$FFq\$7\$\$\$G\$9\$M!#e(B

``                            e\$B\$^\$D\$b\$He(B e\$B\$f\$-\$R\$me(B /:|)``

In article [email protected],
Yukihiro M. [email protected] writes:

e\$B\$^\$C\$?\$/\$=\$NDL\$j\$G\$9!#%F%9%H\$N\$[\$&\$rD>\$7\$^\$9!#e(B

e\$B:Y\$+\$\$%3%_%C%H\$r\$*4j\$\$\$7\$^\$9!#e(B

e\$B%3%_%C%H\$G\$-\$J\$\$M}M3\$O\$"\$j\$^\$;\$s\$h\$Me(B?

|return e\$B\$r=q\$\$\$?%a%=%C%[email protected]\$1\$Ge(B return e\$B\$,\$I\$&F0\$/\$+e(B
|e\$B\$o\$+\$i\$J\$\$\$N\$O\$h\$/\$J\$\$\$H;W\$\$\$^\$9!#e(B

e\$B\$^\$"!"86B’E*\$K\$Oe(Blambdae\$B0J30\$G:n\$i\$l\$?%V%m%C%/\$+\$i\$N%j%?!<%s\$Oe(B
e\$B\$=\$l\$r0O\$`%a%=%C%I\$N=*N;\$H\$\$\$&\$3\$H\$K\$7\$?\$\$\$N\$G\$9\$,!“0lHL2=\$9e(B
e\$B\$k\$N\$Oe(Bdefine_methode\$B\$N\$h\$&\$JNc30\$,\$”\$C\$FFq\$7\$\$\$G\$9\$M!#e(B

e\$B\$&\$%\$`!#\$J\$k\$[\$I!#e(B

e\$B\$^\$D\$b\$He(B e\$B\$f\$-\$R\$m\$G\$9e(B

In message “Re: [ruby-dev:28756] not ok iterator 84 –
./sample/test.rb:1128”
on Mon, 19 Jun 2006 23:13:28 +0900, “Nebata” [email protected]
writes:

|make test e\$B\$G<:GT\$7\$^\$9!#e(B
|ruby 1.9.0 (2006-06-19) [i386-bccwin32]
|
|./sample/test.rb:1137: unexpected break
|not ok iterator 84 – ./sample/test.rb:1128
|test failed

e\$B8=:_:n6HCf\$G\$9!#e(B

e\$B\$M\$P\$?\$G\$9!#e(B
make test e\$B\$G<:GT\$7\$^\$9!#e(B
ruby 1.9.0 (2006-06-19) [i386-bccwin32]

./sample/test.rb:1137: unexpected break
not ok iterator 84 – ./sample/test.rb:1128
test failed

e\$B3:Ev\$N2U=j!Je(B1128e\$B!Ae(B1137e\$B9T!K\$O!"0J2<\$N\$H\$*\$j\$G\$9!#e(B

ljump_test(true, get_block{break})
ljump_test(true, lambda{break})

def exit_value_test(&block)
block.call
rescue LocalJumpError
\$!.exit_value
end

test_ok(45, exit_value_test{break 45})

e\$B\$H\$j\$"\$(\$:\$*CN\$i\$;\$^\$G!#e(B

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

At Tue, 20 Jun 2006 08:09:58 +0900,
Yukihiro M. wrote in [ruby-dev:28763]:

|./sample/test.rb:1137: unexpected break
|not ok iterator 84 – ./sample/test.rb:1128
|test failed

e\$B8=:_:n6HCf\$G\$9!#e(B

e\$B\$3\$l\$K4X\$7\$F\$O\$3\$&\$G\$7\$g\$&\$+!#e(B

# Index: eval.c

RCS file: /pub/cvs/ruby/src/ruby/eval.c,v
retrieving revision 1.899
diff -U 2 -p -r1.899 eval.c
— eval.c 17 Jun 2006 14:50:03 -0000 1.899
+++ eval.c 17 Jun 2006 16:38:08 -0000
@@ -4630,5 +4630,4 @@ break_jump(VALUE retval)
while (tt) {
switch (tt->tag) {

• ``````case PROT_THREAD:
case PROT_YIELD:
case PROT_LOOP:
``````

@@ -4638,4 +4637,5 @@ break_jump(VALUE retval)
JUMP_TAG(TAG_BREAK);
break;

• ``````case PROT_THREAD:
case PROT_FUNC:
tt = 0;``````

e\$B\$^\$D\$b\$He(B e\$B\$f\$-\$R\$m\$G\$9e(B

In message “Re: [ruby-dev:28766] Re: not ok iterator 84 –
./sample/test.rb:1128”
on Tue, 20 Jun 2006 10:45:30 +0900, [email protected] writes:

|> e\$B8=:_:n6HCf\$G\$9!#e(B
|
|e\$B\$3\$l\$K4X\$7\$F\$O\$3\$&\$G\$7\$g\$&\$+!#e(B

e\$B\$=\$l\$GNI\$+\$C\$?\$N\$+\$J!#\$J\$s\$+Bg5,LO\$J%Q%C%[email protected]%3%_%C%H\$7\$^e(B
e\$B\$7\$?!#e(B

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