DragonFly kernel List (threaded) for 2009-01
DragonFly BSD
DragonFly kernel List (threaded) for 2009-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: C++ in the kernel


From: jan.grant@xxxxxxxxxxxxx
Date: Tue, 6 Jan 2009 10:39:30 +0000 (GMT)

On Tue, 6 Jan 2009, Michael Neumann wrote:

> It's actually no new paradigm. It's already used everywhere. A lot of
> Unix APIs *are* object oriented (e.g. files). Take a look at drivers or
> the VFS, they all use "methods" and even inheritance.

Possibly the biggest potential win from C++ would not necessarily be
inheritance or templating (there's a lot of machinery to fill in to 
supply custom allocators, etc), but RAII for common lock management 
operations.


-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Donate a signature: http://ioctl.org/jan/sig-submit



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]