[Pharo-project] Issue 3647 in pharo: Class var #Instance not allowed

pharo at googlecode.com pharo at googlecode.com
Wed Feb 2 12:58:37 CET 2011


Status: New
Owner: ----

New issue 3647 by janko.mi... at 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].
        ...






More information about the Pharo-project mailing list