Re: New release of the Dynace OO extension to C
BGB / cr88192 wrote:
C++ has essentially most of the same MM issues as C...
No, it doesn't. One simple thing makes C++ far superior to C in terms
of memory management: Destructors.
Destructors are the main feature which allows you to write extensive
amounts of code which handles very complicated data structures handling
dynamic memory, without you having to write a single malloc/new or
free/delete, and thus without any memory leaks or other memory
management problems. Thanks to them you don't need any special coding
conventions to, for example, avoid memory leaks. (Ok, you could consider
"avoid using 'new'" as a coding convention. Even then it's a much
simpler convention than anything you would have to do in C.)
most of us have better things to do than get caught up in matters of
container management...
Which is precisely why I like C++ so much more than C.
no, the simplicity is not an illusion, just not the "simplicity" you want it
to be...
the simplicity of C:
a small and finite number of syntactic forms;
well defined rules for how these forms are parsed, what various
constructions and functions do, ...
what happens beyond this, well this is an entirely different matter...
after all, it is the same sort of simplicity which would lead MS to make a
version of Windows with nothing but the CMD shell and Notepad...
after all, you want to do something?
well, there are shell commands for it...
DOS is a simpler OS than Windows...
similar, MinGW+makefiles is simpler than using Visual Studio and its
complicated functionality, ...
What you are describing is not best described with the word "simple".
It's better described with the word "limited" or "ascetic".