Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 9 Apr 2002 10:30:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 9 Apr 2002 10:30:30 -0400 Received: from perninha.conectiva.com.br ([200.250.58.156]:18960 "HELO perninha.conectiva.com.br") by vger.kernel.org with SMTP id ; Tue, 9 Apr 2002 10:30:28 -0400 Date: Tue, 9 Apr 2002 11:30:09 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@duckman.distro.conectiva To: "Richard B. Johnson" Cc: "Dr. David Alan Gilbert" , Martin Dalecki , "T. A." , Linux Kernel Mailing List Subject: Re: C++ and the kernel In-Reply-To: Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Apr 2002, Richard B. Johnson wrote: > On Tue, 9 Apr 2002, Dr. David Alan Gilbert wrote: > > There are many places in the kernel that are actually very OO - look at > > filesystems for example. The super_operations sturcture is in effect a > > virtual function table. > > The file operations structure(s) are structures. They are not object- > oriented in any way, and they are certainly not virtual. The code that > manipulates them is quite physical and procedural, well defined, and > visible to the rest of the kernel. As Alan said it very nicely one day: "Object orientation is in the mind, not in the compiler" What we want is some (sane) degree of abstraction so things stay maintainable, we don't need a full rewrite in another language. regards, Rik -- Will hack the VM for food. http://www.surriel.com/ http://distro.conectiva.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/