C++ in the kernel

jan.grant at bristol.ac.uk jan.grant at bristol.ac.uk
Tue Jan 6 02:44:12 PST 2009


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





More information about the Kernel mailing list