lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.
> 
/snip
> 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." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be