[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: equal tag method [was Re: unicode and locale again]
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Wed, 26 Jun 2002 20:25:06 +0200
Roberto Ierusalimschy wrote:
> > Uhh... sure you want that?
> No ;-) On the other hand, order tag methods are much less useful without
> a corresponding equality operator.
> A tempting option would be to remove the whole order tag method stuff ;-)
> -- Roberto
To throw in another idea... why not split up the operator?
You could have both an equality (==) and an identity (===)
operator. This might be simpler than order tag methods.
Equality checks that the data contained in the
variables is identical, identity checks wether the variables
refer to the same object.
"No one knows true heroes, for they speak not of their greatness." --
Björn De Meyer