From: Yukihiro Matsumoto Date: 2007-03-29T23:33:02+09:00 Subject: Re: Bug in String#[]: using object ID instead of to_int 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 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 * string.c (rb_str_aset): index double decode problem. [ruby-core:09695] matz.