[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_checkudata() changes for 5.1 (was tolua + lua5.1alpha)
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 06 Sep 2005 14:11:20 -0700
There probably ought to be a luaL_toudata as well that returns NULL.
Mark
on 9/6/05 1:21 PM, Doug Rogers at rogers@innocon.com wrote:
> Glenn Maynard wrote:
>
>> luaL_checkudata returned NULL in 5.0, but throws an error in 5.1.
>
> My code is ready for that. I don't use luaL_checkudata() for precisely
> that reason: no control over the exception mechanism. I can see why it
> throws an error, though, since the other lua_checkTYPE()'s do.
>
>> luaL_newmetatable still maps the name to the metatable. It just doesn't
>> map the metatable back to the name, as 5.0 did.
>
> Too bad. That can be helpful.
>
> Doug