Re: Implicit Globals - A compile time solution.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Implicit Globals - A compile time solution.
- From: David Given <dg@...>
- Date: 2008年2月22日 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.
--
David Given
dg@cowlark.com