From: Mauricio Fernandez Date: 2006-04-15T05:39:20+09:00 Subject: Re: Calling instance_eval on a block in C On Sat, Apr 15, 2006 at 03:02:55AM +0900, Ryan Davis wrote: > On Apr 14, 2006, at 10:33 AM, John Lam wrote: > >If I have this ruby method: > > > >def eval_it(obj, &b) > > obj.instance_eval(&b) > >end > > > >How do write the C code to make this happen? If I do this: > > > >rb_funcall(obj, rb_intern("instance_eval"), 1, zz); > > > >Ruby is apparently expecting a String for the type of zz. > > I'm not positive, but I don't think it is possible, because of the > block. See [ruby-talk:180647]. -- Mauricio Fernandez - http://eigenclass.org - singular Ruby