lua-users home
lua-l archive

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


> > When would I want to use light userdatas instead of 
> full-fledged ones?

Userdata allocates memory.  Especially in embedded environments, passing
a C pointer from C to Lua and back to C as full userdata, just to have
it allocate userdata memory, accumulate, and be garbage collected is a
terrible waste of time and space.  Light userdata gets around this
limitation.

Josh