On 21 Dec 2006 at 21:08, Michael B. Brutman wrote:
No need to fear C++. It's just C with some
extras.
Not exactly--I've written plenty of C++ and find that the language
features are like chocolate--enough is wonderful, too much is
nauseating.
The uncertainty about libraries and such to me is the issue of memory
management--it's sort of hard to have constructors and destructors
without some sort of memory manager. OTOH, C can live just fine with
nothing more than a stack.
Here's where I draw my own (somewhat arbitrary) line--applications-
type user-mode code is great with C++, particularly if you have your
own class libraries all built up. If you have a memory leak or
dangling reference, it'll end up crashing your application, but the
system itself will likely keep chugging right along.
But if I'm going to write a device driver, TSR, or some other bit of
SYSTEM code in a HLL where memory utilization must be predicable and
well-behaved, I'll take C, thank you.
Just an old fogie speaking, so ignore if you wish.
Cheers,
Chuck