[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 Length Operator and tables (bug?)
- From: Coda Highland <chighland@...>
- Date: Mon, 16 Apr 2012 20:32:25 -0500
> :) 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