[MacRuby-devel] [MacRuby] #793: Iterator is executed more when calls Hash#shift in Hash's Iterator.

MacRuby ruby-noreply at macosforge.org
Thu Jul 15 01:31:06 PDT 2010


#793: Iterator is executed more when calls Hash#shift in Hash's Iterator.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 $ cat test_hash_shift.rb
 h = {1=>2}
 h.each { p h.shift }
 }}}

 Result of Ruby 1.9.1:
 {{{
 $ ruby test_hash_shift.rb
 [1, 2]
 }}}

 Result of MacRuby Trunk:
 {{{
 $ macruby test_hash_shift.rb
 [1, 2]
 nil
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/793>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list