lua-users home
lua-l archive

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


On Wed, Mar 14, 2018 at 11:00 AM, Rena <hyperhacker@gmail.com> wrote:
> On Wed, Mar 14, 2018, 10:27 Roberto Ierusalimschy, <roberto@inf.puc-rio.br>
> wrote:
>>
>> > In the presence of holes, #t seems to still have the same
>> > easy-to-define/hard-to-understand semantics from Lua 5.1-5.3.
>>
>> I said this in my first post:
>>
>>   You still can create tables with holes, but you must get out of your
>>   way to do it.
>>
>> Once you get out of your way and create holes, all the "standard
>> behavior" are back. But you asked for it...
>>
>> -- Roberto
>
>
> Well, it seems like now that tables can contain nil, it makes little sense
> that sequences can't.

You misunderstand.

The example given had a sequence that contained nil. It was only when
the table key was explicitly removed with undef that a hole was
introduced.

/s/ Adam