From: nobu.nokada@... Date: 2002-01-04T16:20:12+09:00 Subject: [ruby-talk:30182] Re: How to get top-level object from C? At Fri, 4 Jan 2002 15:35:44 +0900, ts wrote: > n> Since top-level methods are module functions of Object, > > Well not really, top_level methods are private methods of Object. > > A module function is a private method and a public method of the > singleton class Sorry, I was wrong and correct it. The top-level object(main) is an instance of Object, but not itself. Since top-level methods are private methods of the main, rb_cObject can't access to the methods and instance variables. It's possible to access the main with ruby_top_self, however, it needs a declaration now. -- Nobu Nakada