[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: new "empty" value/type in Lua?
- From: Coda Highland <chighland@...>
- Date: Tue, 2 Jul 2013 18:57:40 -0700
On Tue, Jul 2, 2013 at 5:34 PM, Luis Carvalho <lexcarvalho@gmail.com> 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:
--snip--
You didn't put in a way to shrink the array. Probably sufficient to
handle calling newindex on n, I suppose.
/s/ Adam