[Newbies] Immutable environments in blocks?
Jeff G
jgon.in.canada at gmail.com
Thu May 26 12:39:40 UTC 2011
Thanks a ton Bert, I really appreciate your help.
On 2011-05-26 5:31 AM, "Bert Freudenberg" <bert at freudenbergs.de> wrote:
On 25.05.2011, at 18:47, Jeff G wrote:
> Hi everyone,
>
> My question is about the semantics of b...
You cannot assign into arguments anymore (in 1999, you could). So you need
to make a temp:
mkCounter := [:init | | counter | counter := init. [counter := counter +
1]].
- Bert -
_______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110526/7c918a94/attachment.htm
More information about the Beginners
mailing list