[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata and GC activity
- From: Florian Weimer <fw@...>
- Date: Tue, 18 Nov 2008 11:15:23 +0100
* Luiz Henrique de Figueiredo:
>> When a statement is closed (either on the C or Lua side), the pointer
>> in its userdata object is nulled. All Lua wrappers check that it is
>> not null and error out.
>
> I usually remove the metatable from userdata objects that have been closed
> explicitly instead of storing NULL and checking.
Doesn't this result in rather unclear error message?