e$B$$$7$D$+$5$se(B
e$B1sF#$G$9!#e(B
rubyspec e$B$,!"e(BVector#each2 e$B$,e(B self
e$B$rJV$9$3$H$r4|BT$7$F$$$^$9!#e(B
e$BG<F@$G$-$J$/$b$J$$4|BT$J$N$G!"1~$($F$7$^$C$F$$$$$G$7$g$&$+!#e(B
e$B8=:_$Oe(B size.times e$B$N5"$jCM$,$=$N$^$^La$C$F$$$^$9!#e(B
diff --git a/lib/matrix.rb b/lib/matrix.rb
index e6f5fe1…d452bf4 100644
— a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1149,6 +1149,7 @@ class Vector
size.times do |i|
yield @elements[i], v[i]
end
e$B$1$$$8$e!w$$$7$D$+$G$9e(B.
In [ruby-dev:40241] the message: “[ruby-dev:40241] [Feature:trunk]
rubyspec: Vector.each2 given one argument returns self when given a
block FAILED”, on Jan/29 22:32(JST) Yusuke ENDOH writes:
e$B$$$7$D$+$5$se(B
e$B1sF#$G$9!#e(B
rubyspec e$B$,!"e(BVector#each2 e$B$,e(B self e$B$rJV$9$3$H$r4|BT$7$F$$$^$9!#e(B
e$BG<F@$G$-$J$/$b$J$$4|BT$J$N$G!"1~$($F$7$^$C$F$$$$$G$7$g$&$+!#e(B
e$BB>$Ne(Beache$B7O$,e(B rubyspec e$B$G$=$&$J$C$F$$$k$J$ie(B,
e$B$=$l$G$$$$$H;W$$$^$9e(B.
__
---------------------------------------------------->> e$B@PDMe(B
e$B7=<ye(B <<—
---------------------------------->> e-mail: [email protected] <<—
e$B%A%1%C%He(B #2687 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)
e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B
This issue was solved with changeset r26538.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
http://redmine.ruby-lang.org/issues/show/2687
e$B1sF#$G$9!#e(B
2010e$BG/e(B2e$B7ne(B1e$BF|e(B18:42 e$B@PDM7=<ye(B
[email protected]:
rubyspec e$B$,!"e(BVector#each2 e$B$,e(B self e$B$rJV$9$3$H$r4|BT$7$F$$$^$9!#e(B
e$BG<F@$G$-$J$/$b$J$$4|BT$J$N$G!"1~$($F$7$^$C$F$$$$$G$7$g$&$+!#e(B
e$BB>$Ne(Beache$B7O$,e(B rubyspec e$B$G$=$&$J$C$F$$$k$J$ie(B, e$B$=$l$G$$$$$H;W$$$^$9e(B.
e$B$"$j$,$H$&$4$6$$$^$9!#e(B
rubyspec e$B$b$^$@LVMeE*$G$J$$$;$$$+!“B>$Ne(B each
e$B7O$G$=$&$J$C$F$$$J$$e(B
e$B$H$3$m$b$”$j$^$9$,!“AH$9~$$Ne(B each
e$B7O$O$[$$=$&$J$C$F$$$F!”%i%$e(B
e$B%V%i%j$G$be(B set e$B$de(B stringio
e$B$J$I$=$&$J$C$F$$$k$H$3$m$b$"$j$^$7$?!#e(B
e$B$^$@$=$&$J$C$F$$$J$$$H$3$m$b$$A$$AD>$7$F$$$1$l$P$H;W$$$^$9!#e(B
e$B$H$$$&$o$1$G!"%3%_%C%H$5$;$F$$$?$@$-$^$7$?!#e(B
e$B$7$+$78D?ME*$K$O!"e(Beach e$B$Oe(B void e$BE*$J%a%=%C%I$J$N$Ge(B
nil e$B$rJV$7$?e(B
e$BJ}$,$h$+$C$?$H;W$o$J$$$3$H$b$J$$e(B