Issue 3647 in pharo: Class var #Instance not allowed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3647 in pharo: Class var #Instance not allowed

pharo
Status: New
Owner: ----

New issue 3647 by [hidden email]: 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].
        ...



Reply | Threaded
Open this post in threaded view
|

Re: Issue 3647 in pharo: Class var #Instance not allowed

pharo
Reply | Threaded
Open this post in threaded view
|

Re: Issue 3647 in pharo: Class var #Instance not allowed

pharo

Comment #2 on issue 3647 by [hidden email]: 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.