From 487a1d4148e4fca357f89128240de41aec2a150e Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 14 Aug 2003 17:20:14 +0000 Subject: * gc.c (id2ref): recycle check should be done by klass == 0. [ruby-core:01408] * eval.c (Init_Thread): Continuation#[] added. [ruby-talk:79028] * parse.y (mlhs_node): should allow "::Foo" (colon3) as lhs. * parse.y (lhs): ditto. * parse.y (yylex): should return tCOLON3 right after kCLASS. [ruby-talk:78918] * error.c (exc_initialize): was converting argument to string too eagerly. Only check was needed. [ruby-talk:78958] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index a03c67606..986eb197a 100644 --- a/eval.c +++ b/eval.c @@ -10114,6 +10114,7 @@ Init_Thread() rb_undef_alloc_func(rb_cCont); rb_undef_method(CLASS_OF(rb_cCont), "new"); rb_define_method(rb_cCont, "call", rb_cont_call, -1); + rb_define_method(rb_cCont, "[]", rb_cont_call, -1); rb_define_global_function("callcc", rb_callcc, 0); cThGroup = rb_define_class("ThreadGroup", rb_cObject); -- cgit