lua-users home
lua-l archive

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


On Mon, Apr 18, 2011 at 10:35 AM, Geoff Leyland
<geoff_leyland@fastmail.fm> wrote:
> Can you give your cdata metatables (you must be doing that already given that they support math operators) and compare the metatables?

Which is exactly how we do it with regular Lua objects; there has
occaisionally been talk about a __type metamethod but it's easy to
write an extended type() function which returns the metatable if
available.

steve d.