lua-users home
lua-l archive

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

On 29 Jul 2009, at 19:04, Luiz Henrique de Figueiredo wrote:

The garbage collector runs when the Lua state is closed. The standard Lua interpreter closes its Lua state before exiting. The garbage collector does not run if the process terminates abnormaly or via an explicit call to os.exit.

To me this suggests that the average app should not close the Lua state -- who wants to wait for GC when your user is trying to quit?

David Dunham       Development Manager
+1 206 926 5722      GameHouse Studios