lua-users home
lua-l archive

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


Hello Greg,

Monday, August 3, 2009, 9:14:14 PM, you wrote:

> static int os_exit (lua_State *L) {
>   if (L)
>     exit(luaL_optint(L, 1, EXIT_SUCCESS));
>   return 0;
> }

> This doesn't change the behavior of any well-formed Lua client, and

but ill-formed client may silently return instead of producing error.
smth like L!=L+1 would be better if we may find way to fool any C
compiler :)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com