diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-16 07:14:50 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-16 07:14:50 +0000 |
| commit | b9de30c8ebe7d7227364f8430e86156c0b13db22 (patch) | |
| tree | 8708e5fd1cd567fc0fa55be976bfa23a580c109f /gc.c | |
| parent | e26b1f8ff90eceae3c41a6700b2cf2a83e4b739f (diff) | |
| download | ruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.tar.gz ruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.tar.xz ruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.zip | |
* eval.c (proc_alloc): re-unification of Block and Proc. Block
class is no longer available.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1469,7 +1469,7 @@ define_final(argc, argv, os) rb_scan_args(argc, argv, "11", &obj, &block); if (argc == 1) { - block = rb_block_new(); + block = rb_block_proc(); } else if (!rb_respond_to(block, rb_intern("call"))) { rb_raise(rb_eArgError, "wrong type argument %s (should be callable)", |
