>>>>> "A" == Andre Nathan <andre / digirati.com.br> 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