At Fri, 4 Jan 2002 00:19:08 +0900,
ts <decoux / moulon.inra.fr> wrote:
> P> Now, I want to call Method1 from C using rb_funcall().
> 
>  Now you can use rb_cObject for the first argument of rb_funcall()

The top-level object is an instance of Object, but not itself.
Since top-level methods are module functions of Object,
almostly OK, but rb_cObject can't access to top-level instance
variables.  It's possible to access top-level object with
ruby_top_self, however, it needs a declaration now.

EXTERN VALUE ruby_top_self;

-- 
Nobu Nakada