From: elathan@... Date: 2003-12-12T19:46:43+09:00 Subject: Re: getting a method from a block in C Quoting ts : > > if (rb_block_given_p()) { > proc = rb_block_proc(); > } > > when you want to call it > > rb_funcall(proc, rb_intern("call"), ...); Ah nice! That is what I wanted. Thanks a lot. > don't forget to define a mark function, and call rb_gc_mark(proc) You mean a mark function for the Ruby garbage collector? Regards, --