From: Dave Thomas Date: 2001-03-20T13:48:42+09:00 Subject: [ruby-talk:12910] Re: Hash-Hash - behavior clarification? "Christoph Rippel" writes: > > 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). > > It violates the rules because of > > a = {}; b = {}; > p a.eql? b # => true , but > p a.hash == b.hash # => false Which version of Ruby are you running? On my 1.6.3: a = {} # => {} b = {} # => {} a.eql? b # => false a.hash == b.hash # => false Dave