lua-users home
lua-l archive

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


2013/6/10 Coda Highland <chighland@gmail.com>:

> Even without LuaJIT I use lightuserdata fairly frequently as an opaque
> handle type when Lua is accessing -- but not OWNING -- a C-side data
> structure. The C-side code is responsible for informing the Lua-side
> code when the object has been destroyed.

Actually I have used it. Once. But normally I can't do without
a metatable. Life without __tostring is just unbearable.