From: Wai-Sun Chia Date: 2001-07-17T22:39:43+09:00 Subject: [ruby-talk:18000] Re: Iterator/block in 'C' ts wrote: >>>>>>"W" == Wai-Sun Chia writes: >>>>>> > > W> How do I define and pass a block {} to rb_ary_each()? > > Look at rb_iterate() if you want to call a C function as a block > Sorry to be so dense, but I still can't figure out how rb_iterate() work even after looking at the source... :-( Perhaps you can share some sample code to emulate a simple Ruby iterator in 'C'?? -- Wai-Sun "Squidster" Chia Unix/Web Developer/RHCE Professional Services