lua-users home
lua-l archive

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


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?)

Read:

  - Lua 5.1: http://www.lua.org/manual/5.1/manual.html#2.5.5

  - Lua 5.2: http://www.lua.org/manual/5.2/manual.html#3.4.6

Regards,
Matthew