From: ts Date: 2006-08-28T02:06:29+09:00 Subject: Re: Passing blocks around in a C extension >>>>> "A" == Andre Nathan writes: A> def foo(&block) In ruby, this can be seen like this def foo block = Proc.new if block_given? A> ... A> end A> in C, ie, store the code block in a variable so I can pass it around. Proc.new is rb_block_proc() block_given? is rb_block_given_p() Guy Decoux