[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Preventing garbage collection of entities
- From: Kaj Eijlers <bizziboi@...>
- Date: Tue, 4 Dec 2018 22:42:01 -0800
If you hold a reference to them they won't be garbage collected, if you don't hold a reference to them how will you be able to keep them alive/address them/ever delete them?
Or am I missing a usecase (entities with coroutines or something?)
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?
P.S. One way to avoid off-topic conversations is, well, actually
having a more on-topic conversation.