[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: please critique my first script
- From: David Manura <dm.lua@...>
- Date: Wed, 18 Feb 2009 22:25:20 -0500
On Wed, Feb 18, 2009 at 7:57 PM, Florin Andrei wrote:
> Please see the script attached to this message and comment...
I'd make heavier use of locals (e.g. for easier static analysis[1]).
os.exit(n) can be used to return a non-zero error code to the shell
upon failure. table.maxn(arg) could be rewritten #arg.
[1] http://lua-users.org/wiki/DetectingUndefinedVariables