[Bug #899] matrix.rb: warning: shadowing outer local variable


#1

Bug #899: matrix.rb: warning: shadowing outer local variable
http://redmine.ruby-lang.org/issues/show/899

e$B5/I<<Te(B: Naohisa G.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

ruby -w e$B$^$?$Oe(B -v e$B$G5/F0$7$?e(Brubye$B$K$Fe(B require ‘matrix’
e$B$9$k$He(Bwarninge$B$,=P$^$9!#e(B
e$B=P$J$$$[$&$,4r$7$$$G$9!#e(B

% ruby-trunk20840 -v -r matrix -e ‘’
ruby 1.9.1 (2008-12-17 revision 20840) [i686-linux]
/XXX/lib/ruby/1.9.1/matrix.rb:627: warning: shadowing outer local
variable - j
/XXX/lib/ruby/1.9.1/matrix.rb:631: warning: shadowing outer local
variable - j
/XXX/lib/ruby/1.9.1/matrix.rb:637: warning: shadowing outer local
variable - j
/XXX/lib/ruby/1.9.1/matrix.rb:641: warning: shadowing outer local
variable - j
/XXX/lib/ruby/1.9.1/matrix.rb:716: warning: shadowing outer local
variable - i
/XXX/lib/ruby/1.9.1/matrix.rb:756: warning: shadowing outer local
variable - i
/XXX/lib/ruby/1.9.1/matrix.rb:827: warning: shadowing outer local
variable - i


#2

e$B%A%1%C%He(B #899 e$B$,99?7$5$l$^$7$?!#e(B (by Keiju Ishitsuka)

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

Applied in changeset r20845.

http://redmine.ruby-lang.org/issues/show/899