[squeak-dev] EncodedCharSet class>charsetAt:

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Oct 1 21:19:47 UTC 2013


(1 to: 30) collect: [:i | EncodedCharSet charsetAt: i]
->
{JISX0208 . GB2312 . KSX1001 . JISX0208 . JapaneseEnvironment .
SimplifiedChineseEnvironment . KoreanEnvironment . GB2312 . nil . nil . nil
. KSX1001 . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil
. nil . nil . nil . nil . nil . nil . nil}

So if you manufactured a character with leadingChar 25 for example, that
would be nil...


2013/10/1 tim Rowledge <tim at rowledge.org>

> So far as I can tell, this method cannot return nil (well, unless somebody
> subverts things) and yet two senders try to handle the result being nil.
>
> EncodedCharSet class>scanSelectorAt: and
> CompoundTextConvertor>nextPutValue:toStream:withShiftSequenceIfNeededForLeadingChar:
>
> If the intent was that something ought to sometimes happen that actually
> can't, maybe the code needs checking, just in case. All the other senders
> rely on the result being non-nil.
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Fractured Idiom:- POSH MORTEM - Death styles of the rich and famous
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20131001/a42241cd/attachment-0001.htm


More information about the Squeak-dev mailing list