[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: new "empty" value/type in Lua?
- From: Enrico Colombini <erix@...>
- Date: Tue, 02 Jul 2013 12:58:49 +0200
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).