[MacRuby-devel] [MacRuby] #290: Hashes do NOT stay ordered

MacRuby ruby-noreply at macosforge.org
Tue Jul 7 08:36:22 PDT 2009


#290: Hashes do NOT stay ordered
-----------------------------------+----------------------------------------
 Reporter:  martin.ploeger@…       |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:                       
Component:  MacRuby                |    Keywords:  Hash order           
-----------------------------------+----------------------------------------
 Hashes in Ruby 1.9 keep their order.
 In MacRuby (macirb):

 {:aa=>1, :a=>1}

 => {:a =>1, :aa=>1}


 According to Ruby 1.9 the result should be in the input-order:

 => {:aa =>1, :a=>1}

 The same is true for methods on a Hash like Hash#keys: The should return
 the keys in the input-order.

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



More information about the MacRuby-devel mailing list