<nobu.nokada / softhome.net> schrieb im Newsbeitrag news:200405140335.i4E3ZWxe015178 / sharui.nakada.niregi.kanuma.tochigi.jp... > Hi, > > At Fri, 14 May 2004 06:50:49 +0900, > Matthias Georgi wrote in [ruby-talk:100193]: > > example: > > > > class A < String; end > > > > hash = {} > > > hash[ A.new('x').freeze ] = nil > p hash.keys.first.class > => A Although that is a fix I'd rather expect the key to be dup'ed. Does this impose problems for the implementation or performance? OTOH, you usually don't subclass String because there's so many places that create strings that you don't control (i.e #to_s etc.). Regards robert