From: George Ogata Date: 2006-12-09T18:00:56+09:00 Subject: Re: rb_iterate On 12/8/06, Tim Pease wrote: > If anyone out there has used the "rb_iterate" function in a Ruby C > extension, could you please post a simple explanation of (a) how to > use the function and (b) an explanation of the method signature? From README.EXT: ** Control Structure 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. VALUE rb_yield(VALUE val) Evaluates the block with value val.