lua-users home
lua-l archive

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


>From: Edgar Toernig <froese@gmx.de>
>
>Why I want to test whether a table is empty?!?  Because I want to see if it
>contains some elements. *verypuzzled*g*

Of course.
I meant only that I did not seem to be a "natural" thing to do in Lua.
I'd say that the "natural" thing to do with tables is to use "foreach", or a
loop of "next", in which nothing gets done if the table is empty.
But your mileage may vary...
--lhf