lua-users home
lua-l archive

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


> It is not obvious to me what the "-w" parameter does on the
> command line of lua.c.

It flags undefined global variables:

$ lua
Lua 5.1 (work)  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> =a
nil

$ lua -w
Lua 5.1 (work)  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> =a
stdin:1: attempt to access undefined variable `a'
stack traceback:
        [C]: ?
        stdin:1: in main chunk
        [C]: ?

--lhf