"Christoph Rippel" <crippel / primenet.com> 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