Hi,

In message "Re: Bug in String#[]: using object ID instead of to_int"
    on Thu, 29 Mar 2007 14:13:14 +0900, Charles Oliver Nutter <charles.nutter / sun.com> writes:

|This seems like a bug...

|So it appears that even though to_int is defined on my Foo class, aref 
|tries to use the object ID to index into the string. It should use the 
|result of to_int, no?

It should and it's fixed already.

Mon Dec 11 09:36:29 2006  Yukihiro Matsumoto  <matz / ruby-lang.org>

        * string.c (rb_str_aset): index double decode problem.
          [ruby-core:09695]

							matz.