From: Jason Creighton Date: 2003-09-12T09:55:43+09:00 Subject: Re: How are global methods defined? On Thu, 11 Sep 2003 15:56:35 +0900 "Gavin Sinclair" wrote: > > [Jason:] > > > > But anyway, the question is, what happens to methods defined at the > > top-level like that? Are they just added to Object? And if that's the > > case, why do we even have Kernel? > > Top-level methods become private methods of Object, so I'm told. That > should make them invisible to subclasses. Ho hum. > > Anyway, we have Kernel so that lots of methods can be gathered together > and made available (via inclusion in Object). But why not add just add private methods to Object if it has the same effect? What's the point of having Kernel? It seems like going the long way around. Jason Creighton