------ art_75703_30008029.1156233989819 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Dont name then Main, name them somethign useful, then it won't matter how many there are. j`ey http://www.eachmapinject.com On 8/22/06, Rich Morin <rdm / cfcl.com> wrote: > > At 11:52 PM +0900 8/21/06, ara.t.howard / noaa.gov wrote: > > Main.new(ENV, ARGV).run if $0 __FILE__ > > > > the reason is that it allows your program to be used as a > > library without polluting the global namespace. > > Assuming that my code contains generally useful functions, > this makes sense (and why bet the other way? :-). However, > I'm curious whether I need to worry about the possibility > of bringing in multiple "Main" classes and "run" methods, > if I use this approach a lot. Do you have any relevant > experience to offer? > > -r > -- > http://www.cfcl.com/rdm Rich Morin > http://www.cfcl.com/rdm/resume rdm / cfcl.com > http://www.cfcl.com/rdm/weblog +1 650-873-7841 > > Technical editing and writing, programming, and web development > > ------ art_75703_30008029.1156233989819--