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

2013-12-13 Thread Stéphane Ducasse
Ok, I will do it with the Preference But in the long run, one can get rid of these things… e,g, Step one: code critic rule to detect these cases two: deprecate the code three: remove. Great plan!!

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

2013-12-12 Thread Frank Shearar
On 12 December 2013 14:44, Benjamin benjamin.vanryseghem.ph...@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 ? That's not a shadow, from what I can see? It is an

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

2013-12-12 Thread Eliot Miranda
On Thu, Dec 12, 2013 at 7:03 AM, Marcus Denker marcus.den...@inria.frwrote: On 12 Dec 2013, at 15:44, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: I just discovered that in Pharo 3 you can do: [ :bool | self logCr: bool. bool := false. self logCr: bool.

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

2013-12-12 Thread Marcus Denker
On 12 Dec 2013, at 20:22, Frank Shearar frank.shea...@gmail.com wrote: On 12 December 2013 19:04, Eliot Miranda eliot.mira...@gmail.com wrote: On Thu, Dec 12, 2013 at 7:03 AM, Marcus Denker marcus.den...@inria.fr wrote: On 12 Dec 2013, at 15:44, Benjamin