Yes
"protocol: private"
anonymousSubclassInitElementType: aTypeName
������ "create and initialize the anonymous subclass of me"
������ | newSubclass |
������ newSubclass := self classBuilder anonymousSubclassOf: NBExternalArray.
������ newSubclass initElementType: aTypeName.
������ ^ newSubclass
vs
"protocol: private"
anonymousSubclassInitElementType: aTypeName
������ "create and initialize the anonymous subclass of me"
������ | newSubclass |
������ newSubclass := AnonymousClassInstaller make: [ :builder |
������ ������ "we're not using 'self' to avoid wrong subclassing from anonymous subclass"
������ ������ builder superclass: NBExternalArray ].
������ newSubclass initElementType: aTypeName.
������ ^ newSubclass
And
"protocol: class factory"
getClassForType: aTypeName
������ "Do not confuse.! This method answers an anonymous class,�� a subclass of NBExternalTypeValue,
������ which can be used for instantiation later i.e:
������
������ floatTypeClass := NBExternalTypeValue ofType: 'float'.
������
������ float�� := floatTypeClass new.
������ float value: 1.5.
������ float value.
������
������ "
������ | newSubclass |
������ newSubclass := self classBuilder anonymousSubclassOf: NBExternalTypeValue.
������ newSubclass valueType: aTypeName.
������ ^ newSubclass
vs
"protocol: class factory"
getClassForType: aTypeName
������ "Do not confuse.! This method answers an anonymous class,�� a subclass of NBExternalTypeValue,
������ which can be used for instantiation later i.e:
������
������ floatTypeClass := NBTypeValue ofType: 'float'.
������
������ float�� := floatTypeClass new.
������ float value: 1.5.
������ float value.
������
������ "
������ | newSubclass |
������ newSubclass := AnonymousClassInstaller make: [ :builder |
������ ������ "we're not using 'self' to avoid wrong subclassing from anonymous subclass "
������ ������ builder superclass: NBExternalTypeValue ].
������ newSubclass initValueType: aTypeName.
������ ^ newSubclass
To anyone who changed this, can i have some canonical protocol for creating anonymous subclasses
without referring to fuzzy , vague and unknown (as to me) AnonymousClassInstaller