Re: tables
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: tables
- From: "D Burgess" <dburgess@...>
- Date: Mon, 6 Mar 2006 11:09:56 +1100
How about -
> a={1,2,3,4,5,6}
> a[1]=nil
> =#a
6
Surely, one would *expect* # to return the same number as the
number of iterations produced by ipairs() ?
David B.
Ryanne Thomas (UMR-Student) wrote:
> In other words, you should never try #{nil, 2} or #{[2] = 2} in the first place. If you do, you must expect an unpredictable result.