At Fri, 4 Jan 2002 15:35:44 +0900, ts <decoux / moulon.inra.fr> 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