asUnicodeChar clean-up

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

asUnicodeChar clean-up

Nicolas Cellier-3

Hello,

Character>>asUnicodeChar seems weird:
- either it returns an Integer
- or a Character

$A asUnicodeChar.
16r100000F asCharacter asUnicodeChar.

Method comment says this method should be replaced...
It has a unique sender CompoundTextConverter>>nextFromStream:

Anyone having background knowledge to perform this clean-up ?

Nicolas


Reply | Threaded
Open this post in threaded view
|

Re: asUnicodeChar clean-up

Yoshiki Ohshima
  Nicolas,

  Ah, yes.  Something like attached would do it.

-- Yoshiki


At Fri, 30 Mar 2007 22:20:28 +0200,
nicolas cellier wrote:

>
>
> Hello,
>
> Character>>asUnicodeChar seems weird:
> - either it returns an Integer
> - or a Character
>
> $A asUnicodeChar.
> 16r100000F asCharacter asUnicodeChar.
>
> Method comment says this method should be replaced...
> It has a unique sender CompoundTextConverter>>nextFromStream:
>
> Anyone having background knowledge to perform this clean-up ?
>
> Nicolas
>
>



unicodeCharFix-yo.2.cs.gz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: asUnicodeChar clean-up

Nicolas Cellier-3
Thank you Yoshiki,

I put your code at http://bugs.squeak.org/view.php?id=6395

Nicolas

Yoshiki Ohshima a écrit :

>   Nicolas,
>
>   Ah, yes.  Something like attached would do it.
>
> -- Yoshiki
>
>
> At Fri, 30 Mar 2007 22:20:28 +0200,
> nicolas cellier wrote:
>>
>> Hello,
>>
>> Character>>asUnicodeChar seems weird:
>> - either it returns an Integer
>> - or a Character
>>
>> $A asUnicodeChar.
>> 16r100000F asCharacter asUnicodeChar.
>>
>> Method comment says this method should be replaced...
>> It has a unique sender CompoundTextConverter>>nextFromStream:
>>
>> Anyone having background knowledge to perform this clean-up ?
>>
>> Nicolas
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>