From: matz@... (Yukihiro Matsumoto) Date: 2004-05-14T22:11:38+09:00 Subject: Re: [RCR] subclasses of string as hash keys Hi, In message "[RCR] subclasses of string as hash keys" on 04/05/14, Matthias Georgi writes: |Current behaviour in Ruby is irritating. | |example: | |class A < String; end | |hash = {} | |hash[ A.new('x') ] = nil | |p hash.keys.first.class | |=> String It's a bug. It should be A. Thank you. matz.