From: Yukihiro Matsumoto Date: 2004-11-30T01:05:34+09:00 Subject: Re: [BUG?] convert_type() uses rb_respond_to() Hi, In message "Re: [BUG?] convert_type() uses rb_respond_to()" on Mon, 29 Nov 2004 23:13:59 +0900, Florian Gro� writes: |> respond_to? method should check remote object anyway. | |Hm, so will this be changed so that Ruby uses duck-typing in this case? |(i.e. just calling the method and raising a different exception instead |of using rb_respond_to()) Yes. Already changed on CVS HEAD. |Or am I misunderstanding and this issue should be solved by manually |adding .to_ary, .to_int and so on to proxy Objects? (so that the |rb_respond_to() check succeeds) No. But I recommend proxy authors to delegate respond_to? request to the remote object, i.e. def respond_to?(method) return true if super(method) # consider remote_invoke as remote object invocation return remote_object.remote_invoke(:respond_to?, method) end matz.