Re: Lua library api style recommendations
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua library api style recommendations
- From: Diego Nehab <diego@...>
- Date: Fri, 5 May 2023 18:03:06 +0100
My conclusion is that all memory management should be left to Lua. You should trust its garage collection.
I once ran a thought experiment to see what kind of changes would be needed to get a kind of C++ move semantics into Lua.
The goal was for this to work in situations such as ((a + b) + c) or a = a + b. Not always, but most of the time and in a safe way.
Has anybody else thought about this possibility?