From: Jim Weirich Date: 2005-04-19T14:58:16+09:00 Subject: Re: - E03c - The Ruby Object Model (Revised Documentation) 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. >> class NilSubClass < nil; end TypeError: superclass must be a Class (NilClass given) from (irb):10 In the context of the Ruby Object Model, Object has not superclass and does not inherit from anything. Please remove the inaccuracies in your Language Object Model. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)