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

Nicolas Petton petton.nicolas at gmail.com
Thu Dec 12 09:52:31 EST 2013


Looks like a bug to me :)

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