lua-users home
lua-l archive

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


> The reason why it works is that when you have a table constructor,
> the "array" part of the table is initialized to be large enough to contain
> all the keyless elements.

Even then we can get weird results:

  $ lua5.2 -e 'print(#{1,nil,3,4,nil})'
  1

-- Roberto