lua-users home
lua-l archive

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

David Given <> writes:

> Asko Kauppi wrote:
>> Am I missing something here?  Did you actually run the code?
>> The b=1,10 do ... end loop is having its own local b, and 'b=1' is
>> retained after the loop.
> Whoops. Of course it is. I think this is technically known as a 'thinko'...
> You may mentally replace the for loop in my example with 'b=1 while
> (b<=10) do print b end', if you wish.

So long as men can breathe or eyes can see,
so long loops this, and this gives live to thee.

David Kastrup