[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How is the extra space associated with the given Lua state used for under actual user applications?
- From: v <v19930312@...>
- Date: Sun, 27 Sep 2020 13:14:09 +0300
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>