[Newbies] Class variables with the same name as an existing class

Sean P. DeNigris sean at clipperadams.com
Fri Dec 3 17:51:25 UTC 2010


If I add a class variable with the same name as an existing class, I get a
warning, which seems reasonable enough (although the warning looks like an
error, so I didn't realize I could just hit "proceed").  However, if I
subsequently remove the class variable, I get a dialog with two options:
1. move the name to Undeclared
2. cancel

It seems like, if a name is already used globally, it should not be
Undeclared, no?  What happens if a name is a class name and in Undeclared -
any conflict?

Thanks.
Sean

Example:
Object subclass: #AClassInTheSystem
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'SpdSystemSpecs'.
	
Object subclass: #ClassWithGlobalSameNameAsAClass
	instanceVariableNames: ''
	classVariableNames: 'AClassInTheSystem'
	poolDictionaries: ''
	category: 'SpdSystemSpecs'.
-- 
View this message in context: http://forum.world.st/Class-variables-with-the-same-name-as-an-existing-class-tp3071477p3071477.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.


More information about the Beginners mailing list