lua-users home
lua-l archive

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

Is there a way to tell if two lua_Objects are equal from within C?  Some
types are pretty easy, but, for example, tables aren't obvious.  I have to
figure out if they are in the same chunk of memory, but getting a pointer
is obviously not supported by the standard API. 

The only technique I can come up with involves lua_dostring, but that's
not particularly elegant.