Trunk/test/ruby/test_proc.rb:127

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

e$B!!$3$N%F%9%H$G$9$,!"e(B0
e$B$K$J$k$Y$-$J5$$,$9$k$s$G$9$,$=$&$G$b$J$$$G$7$ge(B
e$B$&$+!#[email protected]$,8+$D$+$i$J$+$C$?$N$G!"65$($F$b$i$($J$$$Ge(B
e$B$7$g$&$+!#e(B

trunk/test/ruby/test_proc.rb:127
assert_equal(safe + 1, proc {x.method(:inc).to_proc.call;
$SAFE}.call)

  1. Failure:
    test_safe(TestProc) [/home/ko1/ruby/trunk/test/ruby/test_proc.rb:127]:
    <1> expected but was
    <0>.

e$B!!e(BProc#call [email protected]$+$i!"e(B$SAFE
[email protected]$H;W$$$^$9!#e(B

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

In message “Re: [ruby-dev:31480] trunk/test/ruby/test_proc.rb:127”
on Sat, 18 Aug 2007 16:44:15 +0900, SASADA Koichi [email protected]
writes:

|e$B!!$3$N%F%9%H$G$9$,!"e(B0 e$B$K$J$k$Y$-$J5$$,$9$k$s$G$9$,$=$&$G$b$J$$$G$7$ge(B
|e$B$&$+!#[email protected]$,8+$D$+$i$J$+$C$?$N$G!"65$($F$b$i$($J$$$Ge(B
|e$B$7$g$&$+!#e(B

|e$B!!e(BProc#call [email protected]$+$i!"e(B$SAFE [email protected]$H;W$$$^$9!#e(B

Proc#calle$B$O0lN’85$KLa$9$N$,<BAu$O3Z$J$N$G$9$,!“e(Bto_proce$B$O0EL[e(B
e$B$K8F$P$l$k$N$G!”%a%=%C%IM3Mh$Ne(Bto_proce$B$G$Oe(B $SAFE
e$B$O$=$N%a%=%Ce(B
e$B%I$r8F$S=P$7$?$N$HF1MM$K?6$kIq$C$?J}$,M%[email protected]$m$&[email protected]$&H=CGe(B
e$B$G8=>u$N$h$&$K$J$C$F$$$^$9!#e(B

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

Yukihiro M. wrote:

|e$B!!e(BProc#call [email protected]$+$i!"e(B$SAFE [email protected]$H;W$$$^$9!#e(B

Proc#calle$B$O0lN’85$KLa$9$N$,<BAu$O3Z$J$N$G$9$,!“e(Bto_proce$B$O0EL[e(B
e$B$K8F$P$l$k$N$G!”%a%=%C%IM3Mh$Ne(Bto_proce$B$G$Oe(B $SAFE e$B$O$=$N%a%=%Ce(B
e$B%I$r8F$S=P$7$?$N$HF1MM$K?6$kIq$C$?J}$,M%[email protected]$m$&[email protected]$&H=CGe(B
e$B$G8=>u$N$h$&$K$J$C$F$$$^$9!#e(B

e$B!!N;2r$7$^$7$?!#e(B$SAFE
e$B$,A}$($kJ}8~$K$7$+$$$+$J$$$N$G!"0BA4B&$K$U$C$Fe(B
e$B$$$k$H$$$&$3$H$G$9$M!#e(B

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