On Wednesday 09 November 2005 2:00 pm, Steven T. Hatton wrote:
This isn't completely correct. There are some more mundane places were you can really exploit C++ features. A disciplined and skilled C++ programmer in the habit of using the most efficient coding styles will produce code that has few pointers, avoids redundant memory allocations and cleans up after itself thus not needing garbage collection. My opinion of garbage collection in C++ is that a C++ programmer needs garbage collection like an alcoholic needs wiskey. Well said.
I've taken 200 lines of C-style code and reduced it to a dozen lines of C++. Most of those lines were of the form What is the assembler output? Did it generate more efficiant code, or did you just make the code more maintainable.
--
Jerry Feldman