lua-users home
lua-l archive

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


Aleksey Cheusov wrote:
 >> I'll write it in Lua

I was hoping you'd say that... would you please also post your
solution on the wiki page
  http://lua-users.org/wiki/AlternativeGetOpt
as an alternative alternative? ;-)

I've done it.
Sources are there

    http://mova.org/~cheusov/pub/lua_alt_getopt/

I'm new to Lua and this module is actually my first program written in Lua.
So, I need your feedback ;-)

You really shouldn't use double-underscore prefixes in normal code... looks unnecessary there.

IMHO it's better to throw the error and give the choice to the caller what to do with the error message, like the io module.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia