On Tue, Jun 06, 2006 at 04:12:14AM +0900, why the lucky stiff wrote:
> On Tue, Jun 06, 2006 at 02:16:31AM +0900, Victor Shepelev wrote:
> > Assuming I have such C code:
> > 
> > VALUE proc; //contains object of class Proc
> > VALUE obj;  //contains some object
> > 
> > How must look code, corresponding to obj.instance_eval(&proc) ?
> 
> Hi, Victor.
> 
>   rb_funcall(obj, rb_intern("instance_eval"), 1, proc);

I don't think that will work: proc is not a String but a Proc (TypeError).

See [ruby-talk:180647] and [ruby-talk:188958].

-- 
Mauricio Fernandez  -   http://eigenclass.org   -  singular Ruby