[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Implicit Globals - A compile time solution.
- From: David Kastrup <dak@...>
- Date: Fri, 22 Feb 2008 13:03:01 +0100
David Given <dg@cowlark.com> 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