lua-users home
lua-l archive

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


In a message dated 2/10/02 3:20:46 PM, paulmatthews@yahoo.com writes:

<< 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 

nil.  >>

Any ideas on the best way, if any, to capture == and ~= comparisons for 
userdata objects?

Also how would one capture set and get values for local userdata objects (not 
just globals?).

Thanks,
Jules