lua-users home
lua-l archive

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


On 02/07/2013 11.47, Thomas Jericke wrote:
That's why I suggested to have a new standard library "array". It won't
be a new native Lua type. It's more or less just a standard metatable
for array type tables. The only difference between an array and a
sequence is, the array stores its length 'n' explicitly and therefore
allows to have nils in it. Also the length is always set explicitly at
construction or by calling setlength(n).

That would probably be the cleanest solution (assuming there is a problem, which I am not sure of).

--
  Enrico