From: Dave Thomas Date: 2001-03-20T11:54:12+09:00 Subject: [ruby-talk:12900] Re: Hash-Hash - behavior clarification? "Christoph Rippel" writes: > `` Generates a Fixnum hash value for this object. This function must > have the property that a.eql?(b) implies a.hash == b.hash.... The > hash value is used by class Hash. ...'' > > I finial realized that the #hash method of the Hash class it-self > violates this behavior it is simply id-based ... > > h.hash == h.id # => true for any Hash object While I agree that this may be unfortunate, in what way does having h.hash defined as h.id violate the rules? (If our statement is wrong I'd like to fix it). Thanks Dave o