lua-users home
lua-l archive

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


On 3/5/06, Chris <> wrote:
>  However, if a change in implementation could change this behaviour that
> makes me feel uneasy.  This whole issue makes me realize that Lua really
> needs an official well defined language specification to be taken seriously.

     What you must really realize is that you didn't understand the
documentation. It could have read "The behaviour of # is undefined if
there are holes in the array". But instead it tried to explain what
that undefined behaviour would look like, and that confused you.
     So, to make things clearer, don't use # if you have holes (nils)
in the array. Period.