[Pharo-dev] Is variable shadowing a feature or a bug?

Marcus Denker marcus.denker at inria.fr
Thu Dec 12 10:03:14 EST 2013


On 12 Dec 2013, at 15:44, Benjamin <benjamin.vanryseghem.pharo at gmail.com> wrote:

> I just discovered that in Pharo 3 you can do: 
> 
> [ :bool | 
> 	self logCr: bool.
> 	bool := false.
> 	self logCr: bool.
> 	] value: true
> 
> Is this a bug or a feature ?

https://pharo.fogbugz.com/f/cases/12419/block-arguments-should-be-read-only





More information about the Pharo-dev mailing list