From: Logan Capaldo Date: 2006-06-28T06:35:26+09:00 Subject: Re: Ruby and Java equality usage On Jun 27, 2006, at 1:45 PM, Jacob Fugal wrote: > > Why doesn't the default implementation of Object#eql? just use #== > internally? > > E.g.: > > class Object > def eql?(other) > self == other > end > end > > Jacob Fugal I wonder if this has anything to do with class A include Comparable def <=>(other) ... end end e.g. Maybe you overrode #== in a such a way as to upset a hash but didn't know it. I dunno.