G
Gregory Ewing
Lawrence said:at one
time there was an experiment to make the kernel compilable with a C++
compiler, without actually using any C++ features. The result: they lost
about 10% in speed. That was enough to put the kernel developers off taking
the experiment any further.
FWIW, certain parts of the Darwin kernel are written in a
carefully-selected subset of C++. So Apple evidently think
that it makes sense to use some C++ in a Unix kernel under
some circumstances.