From: Trans Date: 2006-08-18T02:40:05+09:00 Subject: Re: using a module at the toplevel doesn't work Yukihiro Matsumoto wrote: > I don't think I understand you. Can you elaborate? Sure thing. It seems natural to me that "main" would a module of the form: module Main extend self end Such a module provides all the characteristics of the toplevel --def, include, etc. Hmmm.... now that I spell it out.... Given that every method defined in main becomes a private method of Object, this Main object looks a whole lot like Kernel itself. So maybe that's a better way to think about it: Why isn;t the toplevel Kernel (w/toplevel methods being private methods of Kernel)? T.