[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: work3
- From: David Burgess <dburgess@...>
- Date: Sun, 19 Dec 2004 13:11:04 +1000
Should it be in print_usage in lua.c?
On Sat, 18 Dec 2004 18:04:33 -0200, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> > 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
>