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 <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9