lua-users home
lua-l archive

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

2008/11/18 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.

Isn't that making the error message unclear if you later access the userdata ?