From: Arlen Cuss Date: 2008-02-29T10:11:20+09:00 Subject: Re: constants defined in Kernel are also defined in Object? ------=_Part_20783_10421347.1204247075717 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Feb 29, 2008 at 11:35 AM, Jeremy Evans wrote: > I think that Kernel and Object are special in that their constants are > available in the top level namespace. Other than there isn't much > difference between them and other classes in this case. The reason for that is since the top level namespace *is* an Object. >> self => main >> self.class => Object >> `main' is an instance of Object, hence everything we evaluate is just like it was evaluated in the instance method of any other Object. We have access to Object's constants, and Object includes Kernel, so Kernel's too. I'm not sure why you would want to do either of those things, though. > Indeed. > Jeremy > Cheers, Arlen. ------=_Part_20783_10421347.1204247075717--