summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-24 05:33:07 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-24 05:33:07 +0000
commit9d58823a16c941544ed80d14864b91be138866bc (patch)
tree2cf187fe8f1461b771d7d6f0e175416c5cd64a5d /README.EXT
parent0aeb2a32e9b546dd762eaa26a56f8260f16013bb (diff)
merges r28617 from trunk into ruby_1_9_2.
-- * README.EXT{,.ja} (rb_block_call): fixed about third/fourth arguments to the block. based on [ruby-core:31192] by Asher Haig. [Bug #3558] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT10
1 files changed, 7 insertions, 3 deletions
diff --git a/README.EXT b/README.EXT
index 30269eb74f..025b035381 100644
--- a/README.EXT
+++ b/README.EXT
@@ -1167,9 +1167,13 @@ Sets the value of the instance variable.
VALUE (*func) (ANYARGS), VALUE data2)
Calls a method on the recv, with the method name specified by the
-symbol mid, supplying func as the block. func will receive the
-value from yield as the first argument, data2 as the second, and
-argc/argv as the third/fourth arguments.
+symbol mid, with argc arguments in argv, supplying func as the
+block. When func is called as the block, it will receive the value
+from yield as the first argument, and data2 as the second argument.
+When yielded with multiple values (in C, rb_yield_values(),
+rb_yield_values2() and rb_yield_splat()), data2 is packed as an Array,
+whereas yielded values can be gotten via argc/argv of the third/fourth
+arguments.
[OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)