[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Documenting Lua gotchas for newbies.
- From: Jonathan Castello <twisolar@...>
- Date: Thu, 2 Dec 2010 01:01:35 -0800
Nope. tbl was defined just before it, as an empty table. #tbl would be
0 anyways.
On Wed, Dec 1, 2010 at 9:48 PM, Lorenzo Donati
<lorenzodonatibz@interfree.it> wrote:
> Ouch! Yes. I implicitly assumed in my example that "a" was local.
> But that
> local c = 0
> is a typo? Shouldn't it be
> local c = #tbl
> ?