lkml.org 
[lkml]   [1999]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux headers and C++
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/

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