lua-users home
lua-l archive

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


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.

-- 
Glenn Maynard