[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Implicit Globals - A compile time solution.
- From: David Given <dg@...>
- Date: Fri, 22 Feb 2008 03:17:15 +0000
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.