Ticket #290 (closed defect: fixed)
Hashes do NOT stay ordered
| Reported by: | martin.ploeger@… | Owned by: | eloy.de.enige@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | Hash order |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

