[Pharo-project] Issue 3647 in pharo: Class var #Instance not allowed
Status: New Owner: ---- New issue 3647 by janko.mi...@gmail.com: Class var #Instance not allowed http://code.google.com/p/pharo/issues/detail?id=3647 If some class have a class variable named #Instance, it is not loadable anymore. It seems that problem is in Class>>bindingOf: method, where check is done in a "declared environment", which happens to be a global SystemDictionary, where a class Instance actually exists. This means that no class var with a name which collides with a name of class is allowed? Class>>bindingOf: ... "Next look in declared environment." binding := self environment bindingOf: aSymbol. binding ifNotNil:[^binding]. ...
Comment #1 on issue 3647 by janko.mi...@gmail.com: Class var #Instance not allowed http://code.google.com/p/pharo/issues/detail?id=3647 Stack trace is here: http://forum.world.st/BUG-var-self-bindingOf-var-notNil-ifTrue-DuplicatedVar...
Comment #2 on issue 3647 by janko.mi...@gmail.com: Class var #Instance not allowed http://code.google.com/p/pharo/issues/detail?id=3647 Proceeding on this exception actually continue and successfully load Aida. You can reproduce the problem by loading Aida on latest 1.2 build: 1. DEVImageWorkspaces openExternalProjectWorkspace 2. evaluate the Aida loading script there: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfAida'; load. (Smalltalk at: #ConfigurationOfAida) load.
participants (1)
-
pharo@googlecode.com