Hi,
In message "Re: Return the ASCII code ?"
on 02/01/22, Martin DeMello <martindemello / yahoo.com> writes:
|> "A".asc -> 65
|
|A fairly trivial RCR: given the frequency with which this gets asked, is
|there any reason not to add a String#asc method?
We have to define the behavior first. What if a string is longer than
1 character? What if the character is NOT in ASCII range (e.g. Unicode)?
I can think of several more ambiguity.
Don't get me wrong. I'm going to clarify. It's the purpose of RCR.
matz.