Doesn't a memory pool almost do the same, though?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Aha, so you can understand why somebody would like C over C++?
You say that C++ would be be better for a beginner because the language is aimed at a specific platform. But why would that be an advantage? Wouldn't portability be an advantage, as well as being a common base for most other programming languages out there, even if they were not directly derived from C?
Last edited by robwhit; 10-09-2008 at 12:15 PM.
Erm, C is the base of C++. C++ is not restricted in such a sense.
It's better if it's aimed at the platform you're trying to develop, yes. Just as it's better to learn PHP or Perl rather than C/C++ if you're going to do server-side business. Not to say it can't be done, but it would be easier in php/pearl.You say that C++ would be be better for a beginner because the language is aimed at a specific platform. But why would that be an advantage? Wouldn't portability be an advantage, as well as being a common base for most other programming languages out there, even if they were not directly derived from C?
And C++ is portable.
tells you what you can and can't do
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
sorry chief, when the argument isn't logical you're going to have a hard time in here.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
I've noticed that. But I don't like, for example, having a "garbage collector" by default. That's the language forcing stuff upon me that I'd rather be without.
I'll just call C++ "base line", where all features and things are (mostly) to my liking. Any added features that are forced upon me from there is not to my liking. It's "coddling."
Not bondage and discipline?Originally Posted by Elysia
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Not in C it isn't. That was standard practice for decades before C++ required explicit type casting. As stated there are billions of lines of code 'out there' and people arent goign to spend the man hours to fix them all just so they can make the code C++ compliant when they dont use any C++ features. Your conhjecture that C isnt necessary is just plain short sighted, there is no defence for that argument. C is necessary for many practical reasons some of which have been laid out here.
> Erm, C is the base of C++. C++ is not restricted in such a sense.
So I should cast void pointers just because some C++ guy says?
> It's better if it's aimed at the platform you're trying to develop, yes.
C is aimed at the same platforms as C++, and more.
> Just as it's better to learn PHP or Pearl
Perl
> rather than C/C++ if you're going to do server-side business. Not to say it can't be done, but it would be easier in php/pearl.
I don't see the analogy.
> And C++ is portable.
Not as portable as C.
Last edited by robwhit; 10-09-2008 at 01:01 PM.
C++ is by nature just as portable as C. It's less portable in practice because implementing compilers for it is so horribly complex.
Frankly, it's a wonder that C++ enjoys as much success as it does, given how much effort goes into developing even an adequate C++ compiler. (I would contend that a "good" C++ compiler doesn't exist.)
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law