nil subclass: ... fails if evaluated more than once.

Alejandro F. Reimondo alereimondo at sugarweb.com
Sun Jan 11 18:43:31 UTC 1998


I have implemented a class like

nil subclass: #SelfInitializingObject
	instanceVariableNames: 'block '
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Vsw310 Compatibility' !

nil implements #subclass:instanceVariableNames:...
like trying to creating class as a child of Object and then changing the superclass (Object) to nil.
When evaluating the expresion again it fails because it acts as a superclass change (to Object again) and the code for superclass change sends #removeSubclass: to the current superclass ( nil !)

Please, correct this bug to silently avoid this situation. (afr 1/11/98 18:33)
Thanks.
Ale.

Alejandro F. Reimondo
Feel free to visit Smalltalk User Group of Argentina (SUGAR)
at http://www.sugarWeb.com





More information about the Squeak-dev mailing list