lua-users home
lua-l archive

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

> Indeed, as I pointed out earlier, giving only lt doesn't work for
> partial orders. You need 'le' instead (or as well).
How about 'cmp' returning -1,0,1 or nil. This would mean 
that 'le', 'ge', 'lt' etc can all be defined in terms of 'cmp'. I'm 
assuming here that the boolean type is changed has values of 0,1 or 

[ You probably noticed I need support for ternary logic in my 
application! ]

Paul Matthews