Login  Register

Re: Character>>asCharacter ?

Posted by Costas Menico on Nov 06, 2004; 4:52am
URL: https://forum.world.st/Character-asCharacter-tp3372010p3372015.html

It doesnt make sense to have one because asCharacter takes a character
and answers its ascii representation, an integer. The reverse of that
is to take that integer and convert it back to the ascii character.

E.g.

$a codePoint.     answers 97

97 asCharacter.   answers $a

costas

"Chris Uppal" <[hidden email]> wrote in message news:<[hidden email]>...
> Is there any reason why there's no Character>>asCharacter method even though
> there is an Integer>>asCharacter ?
>
> An oversight, or would it be ideologically unsound ?
>
>     -- chris