summaryrefslogtreecommitdiffstats
path: root/README.EXT
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-15 12:00:57 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-15 12:00:57 +0000
commit11027a9f3465cc3be91010955057564f36c1d3d6 (patch)
treeddf20cc918fa7cb3b8f0dec4cfabedf8485eaefa /README.EXT
parentf5c9a004acc4f939a0dcff621864d895378d82cc (diff)
downloadruby-11027a9f3465cc3be91010955057564f36c1d3d6.tar.gz
ruby-11027a9f3465cc3be91010955057564f36c1d3d6.tar.xz
ruby-11027a9f3465cc3be91010955057564f36c1d3d6.zip
merges r24094 from trunk into ruby_1_9_1.
-- * enumerator.c (yielder_yield_i): use rb_proc_new instead of rb_iterate. [ruby-dev:38518] * README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call instead. * README.EXT.ja: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT
index edfbf221a..1cf9ad069 100644
--- a/README.EXT
+++ b/README.EXT
@@ -1125,12 +1125,23 @@ Sets the value of the instance variable.
** Control Structure
- VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
+ VALUE rb_block_call(VALUE recv, ID mid, int argc, VALUE * argv,
+ 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.
+
+ [OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
Calls the function func1, supplying func2 as the block. func1 will be
called with the argument arg1. func2 receives the value from yield as
the first argument, arg2 as the second argument.
+When rb_iterate is used in 1.9, func1 has to call some Ruby-level method.
+This function is obsolete since 1.9; use rb_block_call instead.
+
VALUE rb_yield(VALUE val)
Evaluates the block with value val.