[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>
I'm wondering what I can do with a Proc generated by
17 messages
2003/04/06
[#929] Re: UnboundMethod#to_proc
— "Chris Pine" <nemo@...>
2003/04/06
----- Original Message -----
[#934] Re: UnboundMethod#to_proc
— Mathieu Bouchard <matju@...>
2003/04/06
[#940] Re: UnboundMethod#to_proc
— chr_news@...
2003/04/07
>
[#941] Re: UnboundMethod#to_proc
— Dave Thomas <dave@...>
2003/04/07
>> If they have diverging interfaces such that the contracts conflict
[#936] docs on implementation of ruby and/or ruby-gc ? — Ruben Vandeginste <Ruben.Vandeginste@...>
4 messages
2003/04/07
[#964] Range in logical context — Dave Thomas <dave@...>
If I run
7 messages
2003/04/16
[#965] Re: Range in logical context
— Mauricio Fern疣dez <batsman.geo@...>
2003/04/16
On Thu, Apr 17, 2003 at 06:10:40AM +0900, Dave Thomas wrote:
[#973] problem with rb_rescue2() ? — Mathieu Bouchard <matju@...>
5 messages
2003/04/19
Re: UnboundMethod#to_proc
From:
matz@... (Yukihiro Matsumoto)
Date:
2003-04-06 16:44:09 UTC
List:
ruby-core #933
Hi,
In message "Re: UnboundMethod#to_proc"
on 03/04/07, "Chris Pine" <nemo@hellotree.com> 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 */
}