[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Userdata and GC activity
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Tue, 18 Nov 2008 11:12:35 +0100
2008/11/18 Luiz Henrique de Figueiredo <firstname.lastname@example.org>:
>> 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.
Isn't that making the error message unclear if you later access the userdata ?