SortedCollection reversed...

goran.hultgren at bluefish.se goran.hultgren at bluefish.se
Thu Oct 11 13:03:23 UTC 2001


Boris_Gaertner at msg.de wrote:
> Goran Hultgreen wrote:
> 
> >- Sidequestion: If a class without subclasses implements #species as for
> >example CharacterSet does (returning the class CharacterSet), what is
> >the point in that? I mean, what is the difference from just inheriting
> >Object>>species? Well, if it isn't in anticipation of new subclasses of
> >course... :-)
> 
> A redefinition that is equivalent to the definition in Object
> may become necessary when one of the superclasses contains a different
> definition of species.  So check all superclasses.

Yes, that would be a good reason. But CharacterSet has no superclasses
implementing it except for Object. Ok, lets see. I found 19 implementors
and of these the following is like CharacterSet:

CRChar, CRLookupItem, CRParameters, MessageTally, POHalfEdge,
POTriangle, PhoneticRule, ResourceLocator, TextStyle,
ThreeDSChunkDescription.
 
...or is this a performance optimization? Some silly testing shows no
meaningful difference.

regards, Göran




More information about the Squeak-dev mailing list