lua-users home
lua-l archive

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


> :)  Thanks for attempting to clarify it, as for me "clearly" was not so clear.
> To me the documentation stated that if the list was not a sequence that the
> length of the table is not defined, meaning that it is nil.  As that is not what
> my testing showed me, instead it showed rather aberrant behavior which caused
> confusion.  Slightly better wording would have been to say that in such a case
> the result of the length operator is 'undefined'.

In spec jargon, that's exactly what "undefined" means. If it returned
nil, that would be a DEFINED result.

/s/ Adam