[Pharo-project] 1.2: class var #Instance not allowed

Janko Mivšek janko.mivsek at eranova.si
Wed Feb 2 12:26:43 CET 2011


Hi guys,

One more problem: 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].
       ...

Strack trace follows in next mail




-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si




More information about the Pharo-project mailing list