From: "David A. Black" Date: 2004-05-11T03:38:44+09:00 Subject: Re: RCR: Unique Object for Each source file Hi -- On Tue, 11 May 2004, Bill Atkins wrote: > Each Ruby .rb file is currently executed within the class Object. So > running "include ModuleX" in your main script file includes the > methods of ModuleX into Object globally. This is messy. > > I propose that each file be executed within a new instance of Object. > This way, running include in a file would cause that module to be > included only within the scope of that file. I'm not seeing the problem here. If you include a module, that module gets mixed in to whatever module or class called #include. So if it's Object, you're mixing the module into Object. But usually it isn't, and in any case it isn't connected with what's in which file. David -- David A. Black dblack@wobblini.net