lua-users home
lua-l archive

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


On 3/5/06, Alex Queiroz <asandroq@gmail.com> wrote:
     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.

No, I understand the documentation.  It's just vague and the implementation is loose.

Now, the thing is, I don't really care one way or the other because I don't expect Lua to be standardized like C or something so I just accept it as it is, warts and all.  It works well enough.   I probably shouldn't have gotten involved in this conversation in the first place.  :)

--
// Chris