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

Yoshiki Ohshima Yoshiki.Ohshima at acm.org
Thu Dec 2 04:08:07 UTC 2004


  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?

  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