[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: enumerating local vars in C
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 2 Jun 2011 14:15:49 +0200
On Thu, Jun 2, 2011 at 2:02 PM, Jörg Walter <joerg-walter@gmx.de> wrote:
> local val = nil>
> local val = exampleGet()>
> print(val)
> when enumerating on the 3. line, I get two variables 'val', one nil and one
> number. why is that?
There are two locals called 'val' in this chunk. (A 'lint' program
should be able to flag this as a potential problem)
steve d.
- References:
- upvals in Lua bytecode, Xingzhi Pan
- Re: upvals in Lua bytecode, François Perrad
- Re: upvals in Lua bytecode, Xingzhi Pan
- Re: upvals in Lua bytecode, Geoff Leyland
- Re: upvals in Lua bytecode, Reuben Thomas
- Re: upvals in Lua bytecode, Geoff Leyland
- Re: upvals in Lua bytecode, Reuben Thomas
- Re: upvals in Lua bytecode, Florian Weimer
- Re: upvals in Lua bytecode, Luiz Henrique de Figueiredo
- enumerating local vars in C, Jörg Walter