lua-users home
lua-l archive

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


Hallo,

On 5/18/06, Daniel Collins <daniel.collins@internode.on.net> wrote:
>      You can do what luaL_checkudata does: check if the
> object's metatable is equal to the metatable of the "type".

Yes, but the metatable for the type is stored in the registry and I
thought that was only accessible from the C API.

    Sure, you'd have to make it accessible from Lua as well, maybe in
a global table.

--
-alex
http://www.ventonegro.org/