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

Marcus Denker marcus.denker at inria.fr
Thu Dec 12 09:56:58 EST 2013


On 12 Dec 2013, at 15:53, Nicolas Petton <petton.nicolas at gmail.com> wrote:

> Looks like a bug to me :)
> 
Yes, the argument should not be writable… 

> Nico
> 
> Benjamin writes:
> 
>> 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 ?
>> 
>> I am fighting with this every day in javascript, and I do not know about to feel about this :s
>> 
>> Ben
> 
> 
> -- 
> Nicolas Petton
> http://nicolas-petton.fr
> 





More information about the Pharo-dev mailing list