Phillip Hutchings wrote:
> Ruby doesn't provide a character data type, so without this you'd be
> unable to find the character value for it.

What I meant to say is, why not free up x[0] (seems more logical, at 
least to me, to use it for tiny strings) and use something like 
x[0].ascii or x[0].character_code to return an array of character codes 
for all characters in the given string?

It just seems to me that x[0] indicates in no natural, understood way 
that it refers to a fixnum, much less one that indicates character 
codes.

-- 
Posted via http://www.ruby-forum.com/.