lua-users home
lua-l archive

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


* 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?