lua-users home
lua-l archive

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


> What are the equivalant 4.1 versions of:
> lua_newtype()
> lua_pushusertag()
> lua_settagmethod()
> And where are the docs on them?  Thanks.

The whole "tag system" was changed to eventtables in 4.1, so those
functions do not have a direct equivalent. lua_newtype (actually lua_newtag,
in 4.0) now corresponds to the creation of a new table. lua_settagmethod
corresponds to setting a field in this table. There will be a compatibility
module that will implement those old functions on top of the new ones.

-- Roberto