summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-16 03:06:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-16 03:06:01 +0000
commit0e4f4071ba01b6890f4cd7f08d99f789f9c4658e (patch)
tree78f4c48ed4d1b7b3116d0bba7c8f6f60362fbc69 /string.c
parent1ca6cdaf51a4c93862d436668976bf84ed637c10 (diff)
downloadruby-0e4f4071ba01b6890f4cd7f08d99f789f9c4658e.tar.gz
ruby-0e4f4071ba01b6890f4cd7f08d99f789f9c4658e.tar.xz
ruby-0e4f4071ba01b6890f4cd7f08d99f789f9c4658e.zip
* eval_proc.c (rb_proc_new): added.
* string.c (sym_to_proc): supported. * vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support rb_proc_new. * yarvcore.c: add a test code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/string.c b/string.c
index 804614517..7a5c7b45a 100644
--- a/string.c
+++ b/string.c
@@ -4802,10 +4802,7 @@ sym_call(VALUE args, VALUE sym)
static VALUE
sym_to_proc(VALUE sym)
{
- rb_notimplement();
- return Qnil;
- // TODO
- // return rb_proc_new(sym_call, (VALUE)SYM2ID(sym));
+ return rb_proc_new(sym_call, (VALUE)SYM2ID(sym));
}