[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PROPOSAL] a new function: table.proto()
- From: Javier Guerra Giraldez <javier@...>
- Date: Tue, 4 May 2010 11:26:48 -0500
On Tue, May 4, 2010 at 11:23 AM, Benoit Germain <bgermain@ubisoft.fr> wrote:
>> -----Message d'origine-----
>> bounces@bazar2.conectiva.com.br] De la part de Javier Guerra Giraldez
>>
>> i would expect the vector to resize automatically; but wouldn't be
>> 'tight to fit'. the size() bears no relation to the content.
>
> Yes it does, as opposed to capacity().
ok, bad choice of words.
in any case, being a vector (which the array part of Lua's table
already is) doesn't make any easier to find the highest integer key
without a linear search at some point.
--
Javier
- References:
- [PROPOSAL] a new function: table.proto(), François Perrad
- Re: [PROPOSAL] a new function: table.proto(), Duncan Cross
- Re: [PROPOSAL] a new function: table.proto(), steve donovan
- RE: [PROPOSAL] a new function: table.proto(), Benoit Germain
- Re: [PROPOSAL] a new function: table.proto(), GrayFace
- RE: [PROPOSAL] a new function: table.proto(), Benoit Germain
- Re: [PROPOSAL] a new function: table.proto(), Javier Guerra Giraldez
- Re: [PROPOSAL] a new function: table.proto(), Alex Queiroz
- Re: [PROPOSAL] a new function: table.proto(), Javier Guerra Giraldez
- RE: [PROPOSAL] a new function: table.proto(), Benoit Germain