ruby-cvs:18679
From: matz ruby-lang.org
Date: Mon, 1 Jan 2007 03:51:04 +0900 (JST)
Subject: [ruby-cvs:18679] Ruby:r11440: * eval.c (rb_f_catch): generate new tag object if no argument is
matz 2007-01-01 03:51:03 +0900 (Mon, 01 Jan 2007)
New Revision: 11440
Modified files:
branches/matzruby/ChangeLog
branches/matzruby/eval.c
branches/matzruby/ruby.h
Log:
* eval.c (rb_f_catch): generate new tag object if no argument is
given.
* eval.c (rb_catch): call #catch without arguments if tag string
is NULL.
* eval.c (rb_f_throw): allow throwing non-symbol object.
* eval.c (rb_catch_obj): new function to wait throw with arbitrary
object.
* eval.c (rb_throw_obj): new function to throw arbitrary object.