On Fri, 31 Aug 2007 12:31:41 +0900, Austin Ziegler wrote:

> On 8/30/07, Kenneth McDonald <kenneth.m.mcdonald / sbcglobal.net> wrote:
>> Having said that, here's my first entry. I think it's utterly stupid
>> (can you tell I just wasted some time tracking this down?) that
>>
>>     "abc"[0] == "a"
>>
>> is false. Why doesn't that work? Because, with a single index, the array
>> access operator on a string returns, not the character at the given
>> position, but the _character code_ of the character at that position.
> 
> It would be useful if you actually looked what's happening in the
> future: this will be changed for Ruby 1.9. It is, in fact, a sensible
> choice to make given the nature of strings in Ruby.
> 
> -austin

If it were a sensible choice, why change it? Sounds pretty stupid to
me!

-- 
Chris Game

"Not everything that can be counted counts, and not everything
that counts can be counted." - Albert Einstein