#290: Hashes do NOT stay ordered
-----------------------------------+----------------------------------------
 Reporter:  martin.ploe...@…       |       Owner:  lsansone...@…        
     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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to