[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: [BUG?] convert_type() uses rb_respond_to()

From: Yukihiro Matsumoto <matz@...>
Date: 2004-11-28 14:41:26 UTC
List: ruby-core #3843
Hi,

In message "Re: [BUG?] convert_type() uses rb_respond_to()"
    on Sun, 28 Nov 2004 23:23:44 +0900, Florian Gro<florgro@gmail.com> writes:

|I just had a bit of trouble after trying to do proxied_ary | proxied_ary 
|where proxied_ary were two Arrays behind a DRbObject proxy. DRbObjects 
|don't define .to_ary by themself, but they have a method_missing() hook 
|that will forward the calls over the network. So I wonder if it would 
|not be a better idea to just call the method and to see if that causes a 
|NoMethodError exception. At least that is how I would expect it to behave...
|
|Does this make sense?

I think so.  My opinion is that "respond_to?" of proxy object should
be overridden to delegate unknown method names to the remote object,
when method_missing is used extensively.

							matz.


In This Thread