lua-users home
lua-l archive

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


On Mon, May 10, 2010 at 1:11 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> 2010/5/10 spir ☣ <denis.spir@gmail.com>:
>> Because of holes? Maybe one more reason in favour of a plain sequence?
>
> what would be the proposal?
>
> - a structure that doesn't allow nil elements?
>
> - a 'pure vector' that considers every 'slot' used, so there's no
> content-aware count?
>
> - an operator that only has sense if you don't have holes in your
> array? (sounds familiar)
>
> --
> Javier
>

I think it should be fairly easy to implement any of those with metatables, no?

~Jonathan Castello