From: Yukihiro Matsumoto Date: 2006-08-18T02:50:38+09:00 Subject: Re: using a module at the toplevel doesn't work Hi, In message "Re: using a module at the toplevel doesn't work" on Fri, 18 Aug 2006 02:40:05 +0900, "Trans" writes: |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. Why? If it is really required it's fairly easy to add toplevel methods like we did for #include. matz.