From: Tim Pease Date: 2006-12-08T00:51:20+09:00 Subject: rb_iterate 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 eval.c ... VALUE rb_iterate(it_proc, data1, bl_proc, data2) VALUE (*it_proc) _((VALUE)), (*bl_proc)(ANYARGS); VALUE data1, data2; { ... } I understand that "it_proc" and "bl_proc" are function pointers and "data1" and "data2" are the arguments that are passed to each function, respectively. What I don't understand is how all these work together to iterate over a collection. Pointers, tips, tutorials, explanations? Blessings, TwP