#442: each_with_index fails for nested arrays
--------------------------------------+-------------------------------------
Reporter: devin.chalm...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Resolution: fixed
Keywords: |
--------------------------------------+-------------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => fixed
Comment:
I can't reproduce the bug as of r3060, so I assume it has been fixed.
{{{
$ cat t.rb
arrays = Array.new(3){|i| Array.new(3){|j| '%d-%d' % [i, j]}}
arrays.each_with_index do |arr, i|
arr.each_with_index do |elem, j|
puts elem == '%d-%d' % [i, j]
end
end
$ macruby t.rb
true
true
true
true
true
true
true
true
true
$ ruby19 t.rb
true
true
true
true
true
true
true
true
true
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/442#comment:1>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel