lua-users home
lua-l archive

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

On Tue, Jul 2, 2013 at 5:34 PM, Luis Carvalho <> wrote:
>> Is something like this enough? (Note that 'n' is *not* hidden; I do
>> not think hidden stuff is good in the end...)
> Agreed. I had a very similar version, but required that only integer keys can
> be set in __newindex and setlength is implemented through __call:


You didn't put in a way to shrink the array. Probably sufficient to
handle calling newindex on n, I suppose.

/s/ Adam