From: "Iñaki Baz Castillo" Date: 2008-08-11T09:20:21+09:00 Subject: Re: How to redefine != method? El Lunes, 11 de Agosto de 2008, Dave Thomas escribió: > On Aug 10, 2008, at 6:53 PM, Iñaki Baz Castillo wrote: > > Hi, I can redefine == method by doing: > > > > def ==(string) > > > > but it gives me an error if I try: > > > > def !=(string) > > != is simply a negated call to ==, so defining == also changes the > definition of !=. Great to know, thanks a lot. -- Iñaki Baz Castillo