On Wed, Mar 3, 2010 at 7:58 AM, Yanni Chiu <[email protected]> wrote: > Jorge Ressia wrote: > > We tested it with Lukas and is working fine. However, we should see > > that there are no further side effects. > > I can't check right now, but I suspect it is the cause of this > side-effect - you cannot use the same block variable name in the same > method. E.g. > > foobar > collectionA do: [:each | each foo]. > collectionB do: [:each | each bar]. > > I get a syntax error on the second "each". Is this considered shadowing? >
No, it's not shadowing in the closure compiler. Are you in an old image? If not and you're using the closure compiler then there's a bug somewhere. My image does not warn. Again, I need to spend some time bringing the various closure compilers up-to-date, which I should have time to do real soon now. best Eliot > > -- > Yanni > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
