From: Agnot Tok Date: 2001-01-19T12:28:45+09:00 Subject: [ruby-talk:9533] Strange Hash behavior Why does: class C def initialize(obj) @o = obj end def hash @o.hash end def inspect @o.inspect end end h = {} h[C.new(1)] = 1 h[C.new(1)] = 2 puts h.inspect evaluate to {1=>1, 1=>2} and not {1=>2}? I thought Hash used the hash method?! $ ruby -v bug.rb ruby 1.7.0 (2000-12-29) [i686-cygwin] {1=>2, 1=>1} Regards, /Agnot _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.