[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Lua Leak in OS Library
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Mon, 7 Sep 2009 02:51:09 +0200
2009/9/6 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> In my opinion, os.exit() is for exiting quickly and letting the OS
>> worry about cleaning up.
>
> Exactly. Nevertheless, in Lua 5.2, os.exit will accept a flag that tells
> whether to close the Lua state.
This sounds to me like a hack. Why not simply have the stock
interpreter convert the return value of the script to an integer and
return that integer from the 'main' C function ?