From: Gavin Sinclair Date: 2002-11-21T18:15:54+09:00 Subject: Re: Thoughts on Ruby From: "Gavin Sinclair" > From: "Thomas Gagn�" > > > > := assignment > > = equality (they are equal objects) > > == identity (they're both the *same* object) > > > > I should have used identity. Is there (a need for) an > > equivalent in Ruby? > > I've got along fine without it, but you can use > > o1.__id__ == o2.__id__ > > if you need it. I'm not arguing against a new method, though. > > Funny, I thouht Object#eql? did this - lucky I checked before posting. > > Gavin But unfortunately I did not read Austin's post - use #equal? Poor method name, in my opinion. Gavin