From: "Mauricio Fernández" Date: 2003-02-15T18:28:30+09:00 Subject: Re: Class can be subclassed after all... On Sat, Feb 15, 2003 at 09:41:47AM +0900, Chris Pine wrote: > I think the rule for determining the superclass of obj's singleton class is > this: > > If obj has a superclass (i.e. all classes but Object), then use the > superclass's singleton class. (So `superclass' and `singleton_class' > operations commute.) > > Otherwise, just use `obj.class'. Class is the only object where obj.id == obj.class.id, isn't it? -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Turn right here. No! NO! The OTHER right!