From: Robert Dober Date: 2006-04-14T06:00:49+09:00 Subject: Re: Rubyesque way to do multiple <=> ------=_Part_21935_12854243.1144962046360 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, Victor Shepelev wrote: > > > > You haven't got it. I already USED first version, but I CAN'T if > comparison > is done through stand-alone function instead of <=3D> I have not, you are right! really sorry, I just *could* not immagine that someone would implement a Custom Compare without defining <=3D>. But as it is you have of course a problem. Forgive my answer sometimes there are beginners posting. The next time however, before replying, I might read the question. What you have done is nice, but condider this too in case you can determine a reasonable BaseClass of sex. class SexBaseClass def <=3D>(other) ComplexCompareFunction self, other end end Hope I got it Robert > Cheers > > Robert > > Victor. > > > -- Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_21935_12854243.1144962046360--