[squeak-dev] Local variable does not shadow instance variable?
itsme213 at hotmail.com
Mon Dec 8 18:20:50 UTC 2008
Why does "x" as a local variable not shadow an inst-var "x"?
Object subclass: #Foo
instanceVariableNames: 'x' <-- sometimes compile error here
| x | <-- sometimes compile error here
I tried to add an inst-var to one of my classes, and was forced to update
local vars in some methods (or to use a different inst-var name).
More information about the Squeak-dev