[Pharo-project] Cannot assign a parameter

laurent laffont laurent.laffont at gmail.com
Sun Nov 28 10:30:31 CET 2010


Hi,

I can't write

foo: n
  ^[:i| s := s+i. ]

but

foo: n
  |s|
  s := n.
  ^[:i| s := s+i. ]


Why ?


Cheers,

Laurent Laffont

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20101128/ecbfb400/attachment.htm>


More information about the Pharo-project mailing list