|
|
Log in / Subscribe / Register

Not necessarily a bad thing

Not necessarily a bad thing

Posted Jul 31, 2004 20:35 UTC (Sat) by nix (subscriber, #2304)
In reply to: Not necessarily a bad thing by sandy_pond
Parent article: Connect KDE apps using D-BUS (IBM developerWorks)

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().


to post comments

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


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