lua-users home
lua-l archive

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



Yes, thats obvoius now. But it seems to be a rather unexpected exception
to me. It there any rationale behind this exception?

> -----Ursprüngliche Nachricht-----
> Von: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> bounces@bazar2.conectiva.com.br] Im Auftrag von steve donovan
> Gesendet: Mittwoch, 21. Juli 2010 12:27
> An: Lua list
> Betreff: Re: non-locals are only sometimes global?
> 
> On Wed, Jul 21, 2010 at 12:23 PM, Warlich, Christof
> <christof.warlich@thermofisher.com> wrote:
> > Why is "word" not a global?
> 
> Any loop variables in a for-statement are local to the block.