From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 12 14:10:48 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CEFD16A4DE for ; Wed, 12 Jul 2006 14:10:48 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32707.mail.mud.yahoo.com (web32707.mail.mud.yahoo.com [68.142.207.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 0B3BE43D6A for ; Wed, 12 Jul 2006 14:10:43 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 35241 invoked by uid 60001); 12 Jul 2006 14:10:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=a1ZgO1j52bm28ly82gndVWUBCbVcfZBUw1XFCBbr8iS/GGILSm7Il2OJby5tl+FG2QxspTrktDHSaXphpddJ7GtHyX7V7DnET5YvRoPGuTVL/CSCwYb1HKCcWopANF0r06RsQkCM7DstVYDmQrg7ppjJ4kXAEzTKstZzHeIrZNk= ; Message-ID: <20060712141029.35239.qmail@web32707.mail.mud.yahoo.com> Received: from [200.118.70.231] by web32707.mail.mud.yahoo.com via HTTP; Wed, 12 Jul 2006 16:10:29 CEST Date: Wed, 12 Jul 2006 16:10:29 +0200 (CEST) From: To: Peter Jeremy In-Reply-To: <20060712090019.GA723@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailman-Approved-At: Wed, 12 Jul 2006 14:19:20 +0000 Cc: freebsd-hackers@freebsd.org, mag@intron.ac Subject: Re: kern/99979: Get Ready for Kernel Module in C++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 14:10:48 -0000 --- Peter Jeremy ha scritto: ... > > I think the general concensus is that it's up to one of the proponents > of this to actually implement it and demonstrate that it works and has > no undesirable side-effects. > I only wanted to point out that Darwin modules are not the only port candidates that want to use C++. While existing code will not be revamped to C++, we must weight exactly what we find acceptable for use in the kernel, and I'm glad the people doing the port brought this up before expecting to commit undesired features. > >http://www.bug-br.org.br/openbfs/index.phtml?section=development > ... > >- Nicer code > >- Easier to maintain > > These are both very subjective. For someone who isn't comfortable with > C++, I doubt either are true. > Yes. it's subjective. I admitedly prefer C over C++, and I'm glad to have kobj() but it remains to be seen if it can really replace C++ for all our needs. C++ is the de-facto standard for OO: a lot of people know how to use it and since it was always meant to be an extension to C, C programs are expected to build just the same (I know ... C99 broke some of this). cheers, Pedro. Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com