lua-users home
lua-l archive

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

On 2/25/08, Shmuel Zeigerman <> wrote:
> I think no warnings are needed. As in all other cases, it is the
>  programmer's responsibility to take the scope into account. E.g., if the
>  code says 'until x > 0', and x is not defined in the enclosing scope,
>  it'll result in the run-time error "attempt to compare nil with number'.

that's the problem about an unfortunate addition, this code is valid,
accepted and documented.  changing it (to what it was before) means
breaking code and extra warnings in the docs (at the very least).