From owner-freebsd-current@FreeBSD.ORG Sun Feb 15 10:40:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2174106566C for ; Sun, 15 Feb 2009 10:40:15 +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 234FD8FC1B for ; Sun, 15 Feb 2009 10:40:14 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA14864; Sun, 15 Feb 2009 12:40:08 +0200 (EET) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1] helo=edge.pp.kiev.ua) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1LYePv-0002qY-Pm; Sun, 15 Feb 2009 12:40:07 +0200 Message-ID: <4997F105.5020409@icyb.net.ua> Date: Sun, 15 Feb 2009 12:40:05 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090114) MIME-Version: 1.0 To: Andrew Reilly References: <4995BB1B.7060201@icyb.net.ua> <20090213231513.GA20223@duncan.reilly.home> In-Reply-To: <20090213231513.GA20223@duncan.reilly.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: weeding out c++ keywords from sys/sys X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 10:40:16 -0000 on 14/02/2009 01:15 Andrew Reilly said the following: > On Fri, Feb 13, 2009 at 08:25:31PM +0200, Andriy Gapon wrote: >> Rationale: >> There are people who write FreeBSD drivers in C++, > > There are? I can't find any in /usr/src/sys by any of the usual > suffixes. Whatever would you want to do that for, anyway? That > would bring a whole extra language runtime support library into the > kernel, and complicate the boot process with constructors and > what-not. > > Seems like a backwards step, to me. Bait not taken, sorry :-) [*] > Not that this should stop you from de-keywording the include > files, if that takes your fancy, but permuting a variable > "class" into "clazz" is a bit gruesome, imo. Why not just comment > the argument name out altogether? It's not strictly needed in > the prototype. I am not particularly fond of "clazz" myself, but somehow it was the first thing that came to my mind and I didn't give it any further thought. So this was just an example, I am all ears for good suggestions like the the ones from you and Joseph. [*] I have some examples and arguments but I'd prefer to send them in private or in other thread. I think we've seen quite a few flames on the topic of C++ and kernel. -- Andriy Gapon