From: Ilias Lazaridis Date: 2005-04-19T16:59:33+09:00 Subject: Re: - E03c - The Ruby Object Model (Revised Documentation) Jim Weirich wrote: > On Tuesday 19 April 2005 12:59 am, Ilias Lazaridis wrote: > >>>In this case it returns nil because Object does not have a superclass, >>>i.e. it does not inherit from anything. >> >>In context of an Language Object Model: >>Object inherits from "nil". > > Nothing can inherit from nil, for nil is not an instance of Class... as > demonstrated below. you reverse things. >>>class NilSubClass < nil; end > > TypeError: superclass must be a Class (NilClass given) > from (irb):10 this is irrelevant. > In the context of the Ruby Object Model, Object has not superclass and does > not inherit from anything. it inherits from nothing, which is represented by "nil", which is a 'living' object, which is an instance of class NilClass, which inherits from Object. > Please remove the inaccuracies in your Language Object Model. I will add the above describewd circularity to the new diagram. then please review it again. .. -- http://lazaridis.com