From: Matt Mower Date: 2005-01-25T19:47:18+09:00 Subject: Re: top-level object? top-level methods? On Tue, 25 Jan 2005 17:26:29 +0900, Yukihiro Matsumoto wrote: > |Is so, why are top-level methods not made singleton-methods on this object, > |instead of being pulled in as instance methods on the Object class itself > |(and hence into all other classes i.e. more namespace pollution than is > |usually intended). This would still allow top-level methods to call other > |top-level methods. And if the top-level object were referred to by some > |constant like Main, then those methods could be called from anywhere with > |Main.method(...). > > Do you really wish to type "Main.print" everywhere? > Shouldn't #print really be in a module somewhere and then included when I want to be able to "print"..? M -- Matt Mower :: http://matt.blogs.it/