[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Preventing garbage collection of entities
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 5 Dec 2018 09:31:38 -0200
> I've long since noticed the fixedgc, luaC_fix, etc. stuff in internals
> of newer Lua (it used to be luaS_fix, but generalized since --- a good
> thing IMHO). I see some value in it if it could be exposed to user
> code instead of remaining an implementation detail (I also think I see
> how it can be a problem). Is there any chance of this happening or is
> it hidden deliberately?
Despite the new names, these functions are used only over strings, which
have no references to other objects. As already discussed by others, it
would be quite complicated to expose this to other objects.