From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 12 11:37:11 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D32401065672 for ; Thu, 12 Feb 2009 11:37:11 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4138FC15 for ; Thu, 12 Feb 2009 11:37:10 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA21855; Thu, 12 Feb 2009 13:37:04 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <499409DF.4070404@icyb.net.ua> Date: Thu, 12 Feb 2009 13:37:03 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: Christoph Mallon References: <43a2dc1a0902101243w5ce35609x35dbe440c39d80a8@mail.gmail.com> <4992D1B0.8020708@icyb.net.ua> <43a2dc1a0902110840t1e4c8856lb5b33cc153ea4acb@mail.gmail.com> <49934846.10905@gmx.de> In-Reply-To: <49934846.10905@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, Aniruddha Bohra Subject: Re: a little bit of c++ in kernel [module] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 11:37:12 -0000 on 11/02/2009 23:51 Christoph Mallon said the following: > Aniruddha Bohra schrieb: >> On Wed, Feb 11, 2009 at 8:25 AM, Andriy Gapon wrote: [snip] >>> 3. I assume virtual inheritance can be used in kernel code? do you >>> use it? > > Virtual inheritence needs no support from the "outside", so it is > available. > >> Yes. For example, all objects inherit from "Element" and that defines >> virtual functions. (include/click/element.hh) > > Virtual inheritance is something completely different than virtual methods. The foul is on me, I should have known to write in proper terms. I meant virtual methods and their overriding, but used the wrong term. Thank you. -- Andriy Gapon