diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-16 03:06:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-16 03:06:01 +0000 |
commit | 0e4f4071ba01b6890f4cd7f08d99f789f9c4658e (patch) | |
tree | 78f4c48ed4d1b7b3116d0bba7c8f6f60362fbc69 /string.c | |
parent | 1ca6cdaf51a4c93862d436668976bf84ed637c10 (diff) | |
download | ruby-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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)); } |