From: Yukihiro Matsumoto Date: 2010-03-08T17:56:31+09:00 Subject: [ruby-core:28557] Re: [Bug #2945] Regexp#=== is failed by an exception when the exception is occurred in method_missing Hi, In message "Re: [ruby-core:28556] Re: [Bug #2945] Regexp#=== is failed by an exception when the exception is occurred in method_missing" on Mon, 8 Mar 2010 17:47:26 +0900, Kenta Murata writes: |But, I do still not understand Regexp#=== depends on method_missing. |I expect Regexp#=== with a non-string argument returns false. |In Regexp#===, if an argument doesn't have to_str method, |the argument is interpreted as a non-string, isn't it? It's a wrong design of method_missing. If one want exceptions from method_missing ignored for implicit type conversion (to_str, etc.), it should raise NoMethodError. matz.