lua-users home
lua-l archive

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


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