# &block question

**URL:** <https://www.ruby-forum.com/t/block-question/145446>\
**Category:** Ruby\
**Created:** [August 9, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/block-question/145446 "2008-08-09T16:48:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [August 9, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/block-question/145446/1 "2008-08-09T16:48:04Z")

</div>

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
