-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.2.4
-
Component/s: None
-
Environment:Ubuntu 10.04
>> h = Hash[
{"a" => 1}]=> {"a"=>1}
>> oh = BSON::OrderedHash[{"a" => 1}
]
=>
>> h.eql? oh
=> true
>> h.hash.eql? oh.hash
=> false
>> h.hash.eql? Hash[oh].hash
=> true
Is this behavior intentional? It complicates code where hashes are being used as hash keys.
- is related to
-
RUBY-70 OrderedCollection breaks uniq
- Closed