--------------030209070609080503040601 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Nathan Olberding wrote: > 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. > > You are not alone. I think it has something to do with something a long time ago? I don't know what. -Justin --------------030209070609080503040601--