lua-users home
lua-l archive

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


On Sun, 2020-09-27 at 11:10 +0800, 孙世龙 sunshilong wrote:
> Hi, list
> How is the extra space used for under actual user applications?
> I would be grateful if you could give me some examples, especially
> the
> occasions that could not be replaced.

In my C++ wrapper for Lua I use it to store pointer to C++ object that
wraps given Lua VM. It could possibly be replaced by lightuserdata
somewhere like Lua registry, but extra space is easier and probably
faster to both read and write.
-- 
v <v19930312@gmail.com>