From: Phillip Hutchings Date: 2006-07-07T07:39:10+09:00 Subject: Re: Converting Directory Names to Strings On 7/7/06, Nathan Olberding wrote: > Phillip Hutchings wrote: > >> 1) Why isn't x[0] a one-character string? > > > > Because it returns the character value of the first character. > > Okay. Is there a good reason for this? If you really want the character > value, why not use an accessor? I'd like to understand the reasoning. Ruby doesn't provide a character data type, so without this you'd be unable to find the character value for it. -- Phillip Hutchings http://www.sitharus.com/