[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Stand-Alone changes in 5.0-alpha
- From: Philippe Lhoste <PhiLho@...>
- Date: Fri, 20 Sep 2002 10:39:33 +0000 (UTC)
Philippe Lhoste <PhiLho@GMX.net> wrote in
news:Xns928F75BDE834APhiLho@80.91.224.249:
Additional note on my rant: I *like* the new syntax, since it is simplier.
I prefer to type "lua foo.lua t1 t3" rather than "lua -c -f foo.lua t1
t3"...
> BTW, if I go in picky mode, I would frown at the following lines:
> status = handle_argv(argv, &interactive);
> if (status == 0 && interactive) manual_input();
> handle_argv returns either EXIT_SUCCESS or EXIT_FAILURE.
> I believe you should write "if (status == EXIT_SUCCESS" instead, to be
> consistent.
> End of picky mode :-)
Actuall, status can be EXIT_SUCCESS, EXIT_FAILURE, or the result of
luaL_loadfile or lua_pcall... So I suppose it is safe to assume EXIT_SUCCESS
is always 0 on all systems. Seems like a widely used convention anyway.
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/