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 427525
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: I am confused.
by righard on Tue 1st Jun 2010 17:22 UTC 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[3]: I am confused.
by righard on Wed 2nd Jun 2010 18:36 in reply to "RE[2]: I am confused."
righard Member since:
2007-12-26

I actually mend that ;)

I mean, gcc will still be written in c, with some extra c++ sugar. I didn't mean c itself would become more c++.

Sorry if I was unclear.

Reply Parent Score: 2