From: "Mauricio Fernández" Date: 2003-04-24T07:04:27+09:00 Subject: Re: [ANN] Ruby.shop On Thu, Apr 24, 2003 at 04:57:48AM +0900, Hal E. Fulton wrote: > But in this case, the arrows meant > "inherits from" or "descendant is..." > How one might formalize that is something > I will contemplate after eating. > > The blue arrows, of course, mean "mixes in." > Arguably the arrowhead should go the other > way. > I'd like the following to appear somewhere: /* * Ruby's Class Hierarchy Chart * * +------------------+ * | | * Object---->(Object) | * ^ ^ ^ ^ | * | | | | | * | | +-----+ +---------+ | * | | | | | * | +-----------+ | | * | | | | | * +------+ | Module--->(Module) | * | | ^ ^ | * OtherClass-->(OtherClass) | | | * | | | * Class---->(Class) | * ^ | * | | * +----------------+ * * + All metaclasses are instances of the class `Class'. */ Note that if I read this right Object doesn't inherit Class but extends it, as if we had Object.extend Class which of course doesn't work since Class.class != Module. I thus believe the loop at the top of the poster is just wrong. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com > Where in the US is Linus? He was in the "Promise Land". -- David S. Miller