lua-users home
lua-l archive

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



>
>
> We need specifically the information that the .tolua_itag table
> provided: given the name of a class, what is the tag of its instance?
> In our case, constructing a dummy instance of the class and finding
> out via the tag() function is not an option. Alternatively, given the
> tag of a class, returning the tag of the corresponding instance would
> also work.

Lua 4.1 will provide support for extended types,
allowing the programmer to bind a name to a tag.
This feature will be, of course, used by tolua to register its types.
So, querying a tag given its name (and vice versa) will be naturally
supported.

-- waldemar