Re: linux headers and C++

Chip Salzenberg (chip@perlsupport.com)
Wed, 7 Jul 1999 01:02:24 -0400


According to Alan Cox:
> C++ is a preprocessor, nothing more. Check how the original C++ compiler was
> implemented.

I'm afraid that's not quite true, Alan. C++ was is a complete
language, even when it could be translated easily into C. Would you
assert that C is just a preprocessor since it can be translated easily
into assembler? Of course not.

Besides, ANSI C++ contains some constructs that are quite difficult to
express in C, particularly the exception model.

That said, I entirely agree that it's not necessary to use C++ instead
of C to write good code. On the other hand, I suggest that C++ would
have been a good choice for the Linux kernel __IF__ a compiler of the
quality of today's EGCS had been available back then. But it wasn't.

-- 
Chip Salzenberg      - a.k.a. -      <chip@perlsupport.com>
      "When do you work?"   "Whenever I'm not busy."

- 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/