[BUG][FIX] two methods in MultiCharacter search a class in the metaclass hierarchy

Boris Gaertner Boris.Gaertner at gmx.net
Thu Dec 2 23:08:57 UTC 2004


From: "Yoshiki Ohshima" <Yoshiki.Ohshima at acm.org>


>   Boris,
> 
> > EncodedCharSet>>charSetAt:  answers a class.  Unicode is also
> > a class,
> 
>   This is correct.
> 
> > to find out whether  charset is located in the class tree that
> > starts with Unicode, we have to write:
> > 
> >   (charset isKindOf: Unicdoe)
> > 
> > The added 'class' is badly wrong; it takes us into the metaclass
> > hierarchy where the check answers  false.
> > 
> > Same for  MultiCharacter>>asUnicodeChar.
> 
>   I guess we should add a boolean method to EncodedCharSet's class
> side, and test the return value.  Using #isKindOf: in this kind of
> (huh?) method doesn't too much sense.
> 
>   What do you think?
I fear that I fail to fully understand what you plan to do.
A code snippet would help.
 
>   If it is ok, I'll post a fix along this idea.
> 
> > Greetings,
> 
>   Thank you, always,
> 
> -- Yoshiki
>



More information about the Squeak-dev mailing list