From: matz@... (Yukihiro Matsumoto) Date: 2003-04-07T01:44:09+09:00 Subject: Re: UnboundMethod#to_proc Hi, In message "Re: UnboundMethod#to_proc" on 03/04/07, "Chris Pine" writes: |I'm sorry... but I don't understand! :) I shouldn't have used the word "check". This must be much clearer than my poor English. matz. --- eval.c 4 Apr 2003 05:12:17 -0000 1.420 +++ eval.c 6 Apr 2003 16:42:28 -0000 @@ -7319,9 +7322,2 @@ bmcall(args, method) -static VALUE -umcall(args, method) - VALUE args, method; -{ - return method_call(0, 0, method); -} - VALUE @@ -7345,3 +7341,4 @@ umethod_proc(method) { - return rb_iterate((VALUE(*)_((VALUE)))mproc, method, umcall, method); + rb_raise(rb_eTypeError, "unbound method cannot be executed; bind first"); + return Qnil; /* not reached */ }