[ruby-talk:02346] Re: rb_catch

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-03 08:35:34 UTC
List: ruby-talk #2346
Hi,

In message "[ruby-talk:02344] rb_catch"
    on 00/04/03, ts <decoux@moulon.inra.fr> writes:

| How work rb_catch ?

Oops, it's a bug.

--- /tmp/eval.c	Mon Apr  3 17:35:17 2000
+++ eval.c	Mon Apr  3 17:22:52 2000
@@ -7609,7 +7609,7 @@
 catch_i(tag)
     ID tag;
 {
-    return rb_funcall(Qnil, rb_intern("catch"), 0, INT2FIX(tag));
+    return rb_funcall(Qnil, rb_intern("catch"), 1, INT2FIX(tag));
 }
 
 VALUE

In This Thread