[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_checkudata() changes for 5.1 (was tolua + lua5.1alpha)
- From: Glenn Maynard <glenn@...>
- Date: Tue, 6 Sep 2005 16:10:27 -0400
On Tue, Sep 06, 2005 at 03:25:33PM -0400, Doug Rogers wrote:
> My libraries (5.0.2) rely on the documented behavior of
> luaL_newmetatable() and luaL_getmetatable(). I don't currently use
> luaL_checkudata(), mostly because of ignorance (I thought it threw an
> error, not just returned NULL).
luaL_checkudata returned NULL in 5.0, but throws an error in 5.1.
> I'll replace them if necessary, but what
> is the new way to associate a type name with a metatable?
luaL_newmetatable still maps the name to the metatable. It just doesn't
map the metatable back to the name, as 5.0 did.