Re: C++ pushback

Barry Kelly
2006-04-25T20:31:34Z

On Tue, 25 Apr 2006 22:20:26 +0200, "J.A. Magallon" <jamagallon@able.es>
wrote:

> There is no technical argument to reject to write an OS kernel in C++.
> It would not be slower nor more complicated, and it will be probably safer
> because it leaves less things (from thost you always _must_ do) to
> programmers memories.

In a pageable kernel, it would be harder to guarantee that virtual
methods' code is paged in while locks that govern the VM are held.

Of course you could get the same problem with C and pointers to functions,
but at least you could probe them explicitly. With C++, the vtable is one
step removed.

-- Barry