[lkml]   [1999]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux headers and C++
>>>>> "Jamie" == Jamie Lokier <> writes:

Jamie> Jes Sorensen wrote:
>> The kernel is written in C, there is no reason to pollute drivers
>> and other parts of the kernel with restrictions to make it C++
>> compatible.

Jamie> I don't mean drivers or any other part of the kernel.

Jamie> I mean third-party code written to run in kernel space, in C++.
Jamie> It's possible to make much use of C++ in this area. You might
Jamie> not like to use it, but that's not a good reason to prevent it.

I am fully aware of that.

Jamie> If significant support was required I would suggest forgetting
Jamie> the idea. But I believe the changes are minor, easily
Jamie> understood cleanups, so I see no reason to rule it out.

The point here is that you should not try to use C++ features inside
the kernel, ie. things like exceptions are not meant to be used within
the kernel as you do not know what it will do to your stack etc. Again
the kernel is written in C, let it stay like that.

Forcing people to write kernel code in C like this actually prevents a
lot of nasty disasters that will be hard to debug.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:52    [W:0.076 / U:5.196 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site