Hi,

I have the following Ruby code:

    obj.func() do |arg|
        statements
    end

How can I translate this into the corresponding C code?  Basically the
function func() takes a block and it has been written in C without any
problem and it already works with Ruby scripts.  Is it simply
impossible to create a Ruby block from within C, just as it is impossible
to get function pointers of the Ruby methods (as they are stored as
nodes)?

Regards,

Bill