From: Rick DeNatale Date: 2006-09-21T10:28:32+09:00 Subject: Re: Bug in Hash#hash? (Ruby 1.8.4) On 9/20/06, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Bug in Hash#hash? (Ruby 1.8.4)" > on Thu, 21 Sep 2006 09:34:17 +0900, "Rick DeNatale" writes: > > |Smalltalkers might recall that Smalltalk has both a Hash which uses > |Smalltalks equivalents to Ruby's hash and ==, and IdentityHash which > |uses Smalltalks equivalents to Ruby's object_id for the hash, and > |equal? > > Recently, 1.9 added Hash#compare_by_identity method which makes Hash > to compare its keys by identity. > And I showed my age, they say that the memory is the second thing to go, but I forget what the first thing is. In Smalltalk it's Dictionary, and IdentityDictionary, but other than the names Dictionary is a Hash. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/