On Sun, Nov 8, 2015 at 1:21 AM, Sean P. DeNigris <sean@clipperadams.com> wrote:
Issue 16947: Class-side Inst Var "#name" Allowed, But Breaks System https://pharo.fogbugz.com/f/cases/16947/Class-side-Inst-Var-name-Allowed-But...
If you like adventure, try the following: class := Object subclass: #MyClass instanceVariableNames: '' classVariableNames: '' category: 'MyBug'. class class compile: 'break name := 1'. class break. MyClass browse
"Emergency evaluator :/"
To restore the system: class instVarNamed: #name put: #MyClass.
Now here's the kicker - there doesn't seem to a class-side instVarNamed: #name! It's not defined in Object or ProtoObject.
NB. Also a bug in Pharo 4.0
But Class has an instance variable 'name', and Class subclasses --> {ProtoObject class} Following on from past discussions about making the generic 'name' identifier available to applications, should that instance variable and accessors be renamed to 'classname' ? I don't know at all whether that would be a good idea, I just raise the question. cheers -ben