|
On 8 April 2013 14:25, Romeu Braz Pereira Gomes Filho <bpgomes55@gmail.com> wrote:
I was testing the # operator on a table and got some strange results.
The chunk used was:
t = {10, 20, nil, 40}
print(#t) --> 4 (should not be 2?)
t = {10, nil, nil, 40}
print(#t) --> 4 (should not be 1?)Is this an expected result or a bug?
Regards,
Romeu.These two are implementation defined not undefined.