Mail Archives: djgpp/1998/09/07/12:39:22
At 12:43 PM 9/7/98 GMT, you wrote:
>Big plusses of C++ (in order of importance to me):
> Templates
> Class inheritance
> Operator and function overloading (in moderation)
Okay. Noted.
>The problem with g++ is that instantiated templates aren't optimized very
>well (practically not at all, in fact, which is a big pity). In general,
>C++ code is not optimized as well as C code by DJGPP, which is something
>to bear in mind if you are using C++ mainly because of the syntactic
>sugar.
I guess this will be improved as time goes on unless there is some
technical limitation.
>A which-is-better-C-or-C++ war seems to me to be inappropriate on this
>newsgroup; each language has its own advantages and pitfalls. It is best
>to learn C++ and decide for yourself. Bear in mind that though you may
>know C perfectly and learn the C++ syntax quickly, it will take some time
>to get comfortable with the C++ programming mindset.
I agree. I did not have in mind any "better-than" war. We already know C++
is more efficient for certain types of programs. What I am curious about it
how we normally move from C to C++ because of need for this efficiency.
Now the following is sure not a "war" remark: I just don't see a beginner
starting out in C++ with no C experience, but I do see a C programmer
moving to C++ for [.....................] reasons--that's what I had in mind.
Thanks.
Ralph
- Raw text -