On May 14, 2004, at 12:13 PM, Michael Neumann wrote:

>> Is this a bug? Is there any way around it? Am I doing something 
>> stupid?
>
> It's no bug. You have modified the String class *object*. This object
> was bound to the String constant, but Ruby use this object, not the
> String constant to create new instances.

Well, that's kinda what I'd figured it was doing. But still, I would 
have thought that it would use the class defined in the String 
constant. Is it really *that* expensive to do a lookup?

I'll probably have to find another way to do what I'm trying for; maybe 
using the 'evil' module to swap objects... But I really didn't want to 
have to do that.

thanks,
--Mark