lua-users home
lua-l archive

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

2009/9/6 Luiz Henrique de Figueiredo <>:
>> 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 ?