lua-users home
lua-l archive

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


On Mon, 10 May 2010 14:41:08 -0500
Javier Guerra Giraldez <javier@guerrag.com> wrote:

> > Can someone explain why the size (precisely: what # returns) is not stored in the background? Naively, I see this as a small cost for a great gain.  
> 
> it would have to be recalculated on any table modification.  (hint:
> it's not a simple n++/n--)

Because of holes? Maybe one more reason in favour of a plain sequence?

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com