lua-users home
lua-l archive

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


On Thu, Jun 30, 2016 at 8:23 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> — How should constructors set length? What are the lengths of {}, {1, 2} and {1, 2, [3]=3} ?
>
> 0, 2, and 2.
>
> -- Roberto
>

Yuck. I would not want to be the one to document or defend that behavior.

- Andrew Starks