lua-users home
lua-l archive

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


> 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.