From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 23:15:28 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 2D6A61065670 for ; Fri, 13 Feb 2009 23:15:28 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from nschwmtas03p.mx.bigpond.com (nschwmtas03p.mx.bigpond.com [61.9.189.143]) by mx1.freebsd.org (Postfix) with ESMTP id BC4F78FC0A for ; Fri, 13 Feb 2009 23:15:27 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from nschwotgx01p.mx.bigpond.com ([124.188.162.219]) by nschwmtas03p.mx.bigpond.com with ESMTP id <20090213231525.NHGS16649.nschwmtas03p.mx.bigpond.com@nschwotgx01p.mx.bigpond.com> for ; Fri, 13 Feb 2009 23:15:25 +0000 Received: from areilly.bpa.nu ([124.188.162.219]) by nschwotgx01p.mx.bigpond.com with ESMTP id <20090213231521.UFOF807.nschwotgx01p.mx.bigpond.com@areilly.bpa.nu> for ; Fri, 13 Feb 2009 23:15:21 +0000 Received: (qmail 44231 invoked by uid 501); 13 Feb 2009 23:15:13 -0000 Date: Sat, 14 Feb 2009 10:15:13 +1100 From: Andrew Reilly To: Andriy Gapon Message-ID: <20090213231513.GA20223@duncan.reilly.home> References: <4995BB1B.7060201@icyb.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4995BB1B.7060201@icyb.net.ua> User-Agent: Mutt/1.4.2.3i X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150205.4995FF09.0034,ss=1,fgs=0 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: Fri, 13 Feb 2009 23:15:28 -0000 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. 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. Cheers, Andrew