Re: How does ?A return the ASCII value of A ?
- From: Pit Capitain <pit@xxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 20:17:55 +0900
Dave Baldwin schrieb:
I have always used 'A'[0] to return the ASCII value of A and as rickhg12hs wrote ?A will do the same thing. I cannot find any reference to this in Pickaxe so can anyone explain how this works?
Page 50 (first edition) or here:
http://phrogz.net/ProgrammingRuby/tut_stdtypes.html#numbers
Regards,
Pit
.
- References:
- Re: Most simple way to do "array + array => hash"
- From: Hal Fulton
- Re: Most simple way to do "array + array => hash"
- From: Meino Christian Cramer
- Re: Most simple way to do "array + array => hash"
- From: rickhg12hs
- How does ?A return the ASCII value of A ?
- From: Dave Baldwin
- Re: Most simple way to do "array + array => hash"
- Prev by Date: ldap as part of ruby std lib + sample ldaps for windows active dir pls
- Next by Date: Re: File deletion failed -- how to handle problem?
- Previous by thread: How does ?A return the ASCII value of A ?
- Next by thread: Re: Most simple way to do "array + array => hash"
- Index(es):
Relevant Pages
|