Re: weeding out c++ keywords from sys/sys

From: Andrew Reilly <andrew-freebsd_at_areilly.bpc-users.org>
Date: Sat, 14 Feb 2009 10:15:13 +1100
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
Received on Fri Feb 13 2009 - 22:15:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC