lua-users home
lua-l archive

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


On Sun, Jun 6, 2010 at 19:53, Javier Guerra Giraldez <javier@guerrag.com> wrote:
> On Sun, Jun 6, 2010 at 8:13 PM, T T <t34www@googlemail.com> wrote:
>> Which makes me wonder why #t is not specified in such a way to be
>> usefull for tables with holes too.
>
> can you suggest such a definition that also:
>
> - is useful for tables without holes
>
> - is quick to compute
>
> - has none or minimal memory requirements.
>
> - has none or minimal overhead on field assignment
>
> ?
>
> --
> Javier
>

How about the number of elements in the table? (i.e. number of keys
whose values aren't nil, for you pedantic types)

-- 
Sent from my toaster.