Linked by Thom Holwerda on Tue 1st Jun 2010 15:12 UTC
General Development "I am pleased to report that the GCC Steering Committee and the FSF have approved the use of C++ in GCC itself. Of course, there's no reason for us to use C++ features just because we can. The goal is a better compiler for users, not a C++ code base for its own sake. Before we start to actually use C++, we need to determine a set of coding standards that will apply to use of C++ within GCC."
Thread beginning with comment 427513
To read all comments associated with this story, please click here.
I am confused.
by Thomas2005 on Tue 1st Jun 2010 16:28 UTC
Thomas2005
Member since:
2005-11-07

Are they talking about writing GCC itself with C++?

Are they trying to replace current code, written in C(?), with C++ or do they want to write new code with C++?

Has GCC gotten so large that they want, or even need, to break it up and make it modular so it will be easier to update and maintain?

Reply Score: 2

RE: I am confused.
by righard on Tue 1st Jun 2010 17:22 in reply to "I am confused."
righard Member since:
2007-12-26

I think they just want to "compliment" C with some stuff from C++.

For example, just using std::vector can make the code a lot smaller, easier to understand and less bug prone.
Also constructors and destructors can prevent a lot of memory leaks.

It makes no sense not to use some of C++ improvements over C.

Reply Parent Score: 2

RE[2]: I am confused.
by tylerdurden on Wed 2nd Jun 2010 18:07 in reply to "RE: I am confused."
tylerdurden Member since:
2009-03-17

No, it is about allowing gcc itself to be written in C++.

C++ is already mostly a superset of C (with some caveats so it is not as strict of a superset in the mathematical sense as Obj-C is), what you are proposing makes no sense whatsoever.

Edited 2010-06-02 18:12 UTC

Reply Parent Score: 2

RE: I am confused.
by Delgarde on Tue 1st Jun 2010 22:22 in reply to "I am confused."
Delgarde Member since:
2008-08-19

Are they talking about writing GCC itself with C++?

Are they trying to replace current code, written in C(?), with C++ or do they want to write new code with C++?


The latter - as the article says, they've simply declared that C++ code is now permitted in the compiler. No great plan to rewrite everything in C++ - just the removal of a policy that disallowed it.

Reply Parent Score: 2