[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: why is comparison not handled like other binary operators w/metamethods?
- From: Sam Roberts <sroberts@...>
- Date: Mon, 2 Oct 2006 12:08:22 -0700
Particularly, if I have a user-data with __mul in it's metadata, I can
multiply it with a lua_Number.
But if I have a user-data with __eq int it's metadata, I can't compare
it with a lua_Number.
There must be a reason... what is it?
Also, what is the suggested work-around? The user-data wraps a uint64,
for those interested.
This is with 5.0.
Thanks,
Sam