[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

&block question

jrmair

8/9/2008 2:47:00 PM

Hello friends,

I'm having a hard time implementing the equivalent of this in the ruby
C API:

module M
module_function
def run(&block)
module_eval(&block)
end
end

How is the &block operation implemented in the C API? im looking for
something to convert a proc to a
block. i've scanned many of the .c files and have found nothing.
Anyone have any ideas?

cheers

John
--
Posted via http://www.ruby-....