|
|
Log in / Subscribe / Register

Not necessarily a bad thing

Not necessarily a bad thing

Posted Jul 31, 2004 14:31 UTC (Sat) by sandy_pond (guest, #9734)
In reply to: Not necessarily a bad thing by rjw
Parent article: Connect KDE apps using D-BUS (IBM developerWorks)

"glib as a whole is a gnome conspiracy to ruin the purity of C++"
"object system in in C : pretty distasteful to C++ purists"

I wish these C++ purists would understand that C++ is a superset of C. C++ objects are implemented in C.

"I'm just waiting till someone creates an implementation of libc that implements everything using the stl underneath... that'll be the flamewar to end them all."
Why don't these C++ purists go off and write there own Linux++ and leave those who just want to make thing work together alone. While there at it they can write a "pure" C++ compiler.


to post comments

Not necessarily a bad thing

Posted Jul 31, 2004 20:35 UTC (Sat) by nix (subscriber, #2304) [Link] (1 responses)

I wish these C++ purists would understand that C++ is a superset of C.
But it is not. It is a near superset, getting rapidly less so with the release of C99.

That does not mean that good C style and good C++ style are identical: far from it.

C++ objects are implemented in C.
I can't work out just what on earth this is meant to mean. The only case I can think of of a C++ object being implemented in C code is GNU libio, and that is specific to a single C++ ABI and only does such horrible hackery in order to ease the implementation of ios_base::sync_with_stdio().

Not a superset

Posted Aug 1, 2004 2:17 UTC (Sun) by pkturner (subscriber, #2809) [Link]

[C++] is a near superset, getting rapidly less so with the release of C99.
On the contrary, the discrepancies that arise from this 5-year-old (rapidly??) standard are in retreat. Quoting Herb Sutter from the C/C++ User's Journal,
At the Fall 2003 meeting, C and C++ already decided to adopt large parts of each other's work... at this Spring 2004 meeting, the C++ committee decided to adopt the C99 library extensions

Not necessarily a bad thing

Posted Aug 2, 2004 7:36 UTC (Mon) by anselm (subscriber, #2796) [Link]

> C++ objects are implemented in C.

That used to be the case back when Bjarne Stroustrup was still in
charge and the canonical C++ compiler was AT&T's »cfront«, which
compiled C++ to C.

For the last fifteen years or so at least, most C++ compilers have been
emitting assembly code directly, just the way C compilers do. G++,
for example, started out as an alternative front-end to the GCC
code-generating back-end, not as a C++-to-C compiler.

Anselm


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds