lua-users home
lua-l archive

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


Hi,

I wrote:
> nt wrote:
> > 2) Perhaps I am missing something, but there does not appear to be a 
> > convenient way to determine if a table is empty.
> 
> if not next(t) then ... end

Oops. Make that:

if next(t) == nil then ... end

[false is a valid key.]

Bye,
     Mike