From: "Mauricio Fernández" Date: 2002-08-16T02:54:41+09:00 Subject: Re: Thought question: Where does "new" come from? On Fri, Aug 16, 2002 at 02:38:01AM +0900, Hal E. Fulton wrote: > > > > (Class) is the singleton class associated with Class > > (Object) is the singleton class associated with Object > > Oh, yes, of course. Where the singleton information > goes. > > I am still unclear why these are conceptually > necessary. > > If I do a "def Object.foo" why does it have to go into > (Object) as opposed to just Object? I think it is for uniformity's sake, so you can handle the same way these situations: def Object.foo def anobject.foo in the second line we really need the singleton class, and, having implemented this, the first one comes for free. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Computers are like air conditioners. Both stop working, if you open windows. -- Adam Heath