Prefix the Proc with "&" to convert it back to a block:

def func2 (arg1,  &proc)
	func1 (x, &proc)
end

Cheers,
	Nat.

On Fri, 2002-08-30 at 15:35, William Djaja Tjokroaminata wrote:
> I have two functions that each takes a block:
> 
>     def func1 (arg1, &arg2)
>         ....
>     end
> 
>     def func2 (arg1, &arg2)
>         ....
>         func1 (x, ???) ???
>         ....
>     end
> 
> Can we pass the block from func2 to func1?  If yes, how?  (It seems there
> is no way to convert back from a Proc object to a block.)


-- 
Dr. Nathaniel Pryce, Technical Director, B13media Ltd.
Studio 3a, 22-24 Highbury Grove, London N5 2EA, UK
http://www.b13media.com