[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New array type? (was: 'table' as fallback for tables)
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 8 Jul 2016 09:49:45 +0200
On Fri, Jul 8, 2016 at 9:07 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> t[#t+1] = newitem
>
> seems to me to be unbeatably concise, and needs only O(log n)
> time, but with the present Lua documentation is unsound code.
Hm, did not Roberto say that this should always work? Or is the joker
__len? Surely any sensible person would implement __len so that this
still works, or throw an error (fixed size).
(I remember when this was considered not unbeatably concise enough, so
e.g. the 't[#] = newitem' proposal)
- References:
- Re: New array type? (was: 'table' as fallback for tables), Soni L.
- Re: New array type? (was: 'table' as fallback for tables), Tim Hill
- Re: New array type? (was: 'table' as fallback for tables), Coda Highland
- Re: New array type? (was: 'table' as fallback for tables), steve donovan
- Re: New array type? (was: 'table' as fallback for tables), Joseph Manning
- Re: New array type? (was: 'table' as fallback for tables), Dirk Laurie
- Re: New array type? (was: 'table' as fallback for tables), William Ahern
- Re: New array type? (was: 'table' as fallback for tables), Dirk Laurie
- Re: New array type? (was: 'table' as fallback for tables), William Ahern
- Re: New array type? (was: 'table' as fallback for tables), Ross Berteig
- Re: New array type? (was: 'table' as fallback for tables), William Ahern
- Re: New array type? (was: 'table' as fallback for tables), Dirk Laurie