From: Yukihiro Matsumoto Date: 2012-01-10T15:55:44+09:00 Subject: [ruby-core:42021] Re: [ruby-trunk - Bug #5865] Exception#== should return false if the classes differ Hi, OK, I like this patch. Please check in. matz. In message "Re: [ruby-core:42017] Re: [ruby-trunk - Bug #5865] Exception#== should return false if the classes differ" on Tue, 10 Jan 2012 11:34:25 +0900, Nobuyoshi Nakada writes: | |Hi, | |(12/01/09 22:02), Nikolai Weibull wrote: |> The fix should be to also check the #class of obj against the #class |> of exc, not to simply ignore it if the rb_obj_class()es don’t match. |> I’ve attached a patch. | |Fixnum#== works fine with Delegator because of implicit conversion, so |I think Exception should also use same way.