From owner-cvs-all@FreeBSD.ORG Tue Jul 13 21:22:39 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84D2516A4CE; Tue, 13 Jul 2004 21:22:39 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D95F743D45; Tue, 13 Jul 2004 21:22:38 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i6DLMaPO025997; Tue, 13 Jul 2004 23:22:36 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 13 Jul 2004 15:15:49 MDT." <20040713.151549.66796909.imp@bsdimp.com> Date: Tue, 13 Jul 2004 23:22:36 +0200 Message-ID: <25996.1089753756@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: scottl@freebsd.org cc: cvs-all@freebsd.org cc: nate@root.org Subject: Re: cvs commit: src/sbin/kldunload kldunload.8 kldunload.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 21:22:39 -0000 In message <20040713.151549.66796909.imp@bsdimp.com>, "M. Warner Losh" writes: >: I'm pretty sure i mean "multiple inheritance": >: >: objects A, B, X, Y; >: A is a child of X and Y; >: B is a child of Y and Z; >: >: that was called multiple inheritance last I read about OO. > >If you are talking types, that's multiple inheritance. If you are >talking instances in the object tree, that's multi pathing. > >newbus definitely supports multiple inheritance like you describe. >Just use DEFINE_CLASS_2 for objects A and B and list X and Y for the >first one and Y and Z for the second. That was another thing I ran into with newbus: I had to define things at compile time which I only knew at (auto-)configure time. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.