[Newbies] Block and Closure
K. K. Subramaniam
subbukk at gmail.com
Sat Apr 11 04:15:29 UTC 2009
On Friday 10 April 2009 9:18:29 am Randal L. Schwartz wrote:
> In Squeak, i in the block will refer to the i in the do: block and the
> last statement will print 25 because i would be 5 when do: terminates.
> Not necessarily. I could see an implementation where i would be 4.
Possible. I just used Squeak 3.8/Etoys 4.0 as examples where i becomes 5 when
the iteration terminates.
More information about the Beginners