lua-users home
lua-l archive

Re: metamethod __lt oddity?

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


MichaelL@frogware.com
> FYI, Ruby defines a "comparison" operator (<=>) which returns -1, 0, or 1.
> It then derives all other comparisons from that.
If you allow partial ordering then you would need a fourth value, meaning
"not ==" and "not <" and "not >".
*cheers*
Peter Hill.

AltStyle によって変換されたページ (->オリジナル) /