Jan. 17, 2010
12:13 p.m.
Indeed, my bad. Cheers, Doru On 17 Jan 2010, at 09:57, Lukas Renggli wrote:
I believe this is a bug.
That's the correct behavior. This is exactly how closures should behave. The variable declaration is outside the block you store thus one variable slot is shared among multiple block definitions inside. See ClosureTests for more examples of that behavior.
Lukas
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- www.tudorgirba.com "Problem solving should be concentrated on describing the problem in a way that is relevant for the solution."