[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 15 Jan 2010 12:42:13 -0200
> Agreed. The only reason #t has its undefined behavior is because it is
> impractical for it to iterate the table.
I disagree. In my point of view, there is no sensible semantics for #t
when the table has holes.
Consider the "lists" below and think what should be their length:
{1, 1, nil, 1, 1, 1, 1, 1, 1, 1, 1}
{1, 1, nil, 1}
{1, 1, nil, 1, nil}
{nil, nil, nil}
{[100000] = 1}
-- Roberto