[ale] Introduction

Geoffrey esoteric at 3times25.net
Wed Dec 1 11:15:02 EST 2004


Fletch wrote:
>>>>>>"Geoffrey" == Geoffrey  <esoteric at 3times25.net> writes:
> 
> 
>     Geoffrey> Fletch wrote:
>     >>>>>>> "Jason" == Jason Vinson <vinson.lists at charter.net> writes:
>     >> [...]
>     Jason> Maybe i'm misunderstanding the problem, but are you saying
>     Jason> that this is annoying:
>     Jason> 
>     >> Character.getNumericValue('z')-Character.getNumericValue('a')
>     Jason> Lengthy yes... but doable (and not that hard!)
>     >> *cough*Perl*cough* ord('z') - ord('a')
> 
>     Geoffrey> No, no, character - character = integer... :)
> 
> Erm, yes that's what they both do . . .
> 
> freebie:~ 784> perl -le 'print ord("z") - ord("a")'

Doesn't ord("z") convert "z" to numeric and then do the math?

Actually, I believe '5' - '4' in C simply does pointer math.

-- 
Until later, Geoffrey



More information about the Ale mailing list