[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 4.1 Versions of Functions?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 04 Mar 2002 11:50:36 -0300
> 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