lua-users home
lua-l archive

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


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?