Ryan Davis
11/25/2007 6:35:00 AM
On Nov 24, 2007, at 06:33 , <saladin.mundi@gmx.de>
<saladin.mundi@gmx.de> wrote:
> Further example:
>
> class X
> def hi()
> p "hello"
> end
> end
> ix = X.new
> ix.hi # rb_funcall is invoked
>
> so the recv shall be hi() , which should be the value of recv or??
no, recv is the VALUE for ix. mid is the id for :hi, n will be 0. It
would be roughly equivalent to :
rb_funcall(ix, rb_intern("hi"), 0);
What I _think_ you're asking is "what is the name of the reciever for
this rb_funcall" and there isn't one.