From: Tim Pease Date: 2006-09-14T01:26:53+09:00 Subject: Re: What does it take to make an object hashable, no really... On 9/13/06, Farrel Lifson wrote: > > Is there a reason why an implementation of eql? is needed instead of > just being able to define <=>? > > Farrel The results of <=> are always a Fixnum -- specifically 1, 0, -1 A Fixnum always evaluates to true in a boolean expression in Ruby. You have to use eql? if you want to get a true/false result. TwP