Re: C++ in kernel

Theodore Y. Ts'o (tytso@MIT.EDU)
Tue, 12 Jan 1999 02:15:12 -0500


From: "Alexander Vlasenko" <ukrgym@ilyichevsk.odessa.ua>
Date: Mon, 11 Jan 1999 22:09:46 +0200

In my opinion C++ can be used as cleaner and safer C.
C++ has lots of really useful features.

Features that help catch errors early:
* const pointers
* private struct members
* stricter type checking

Features that improve code safety:
* constant variables (safer than #defines)
* inline funcs (safer than #defines)

We're using const pointers and inline function in the kernel already
(supposed by GCC). The question then is the rest of the features worth
the conversion cost to C++; I myself am not convinced.

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/