Hi,

On 2010/03/08, at 17:56, Yukihiro Matsumoto wrote:

> |But, I do still not understand Regexp#=3D=3D=3D depends on =
method_missing.
> |I expect Regexp#=3D=3D=3D with a non-string argument returns false.
> |In Regexp#=3D=3D=3D, if an argument doesn't have to_str method,
> |the argument is interpreted as a non-string, isn't it?
>=20
> 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.

I understand, I'll use NoMethodError for implicit type conversion =
methods
in method_missing.

Thanks.

--
Kenta Murata
OpenPGP FP =3D FA26 35D7 4F98 3498 0810 E0D5 F213 966F E9EB 0BCC

=1B$BK\$r=3Dq$-$^$7$?=1B(B!!
=1B$B!X=1B(BRuby =1B$B5U0z$-%l%7%T!Y=1B(B =
http://www.amazon.co.jp/dp/4798119881/mrkn-22

E-mail: mrkn / mrkn.jp
twitter: http://twitter.com/mrkn/
blog: http://d.hatena.ne.jp/mrkn/