lua-users home
lua-l archive

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


Sorry, problem is of minor value, as only boolean or number is allowed
for os.exit argument.
It applicable only to os.exit(os.execute(command)).
Sorry for the noise.

On 11/17/12, Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
> Returning nil or meaningful value is common in Lua.
> But os.exit(nil) is unexpectedly equivalent to os.exit(true), not
> os.exit(false).
> This forces us to write
> os.exit(foo() or false)
> instead of more concise and clear
> os.exit(foo()).
> My suggestion is to make os.exit(nil) different from os.exit().
>