lua-users home
lua-l archive

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


On Mon, Aug 23, 2010 at 3:19 PM, Andreas Matthias
<andreas.matthias@gmail.com> wrote:
> These two `bar's seem not to be the same. Why?

Using 'local' again defines a new local with the same name,
effectively shadowing the previous one. The first one isn't affected,
but it can't be accessed directly except by closures defined while it
was in scope.

~Jonathan