|
From: Ioannis V. <no...@ya...> - 2001-10-05 09:42:01
|
I forgot to mention that i have started myself with C too and that except from the previous benefits of the templates (inline expansion=3D0 runtime overhead, instances only of the member functions which are used=3D0 space overhead) the fact that not using the string type and its member functions and using C strings and passing them as arguments among functions "twiddling their bits" has almost always as a result the programmer to write a lot more code than that getting compiled when you use the string type. Also the cost of calling a stand alone function is usually bigger than the cost of calling a member function. Add to this that the templates are usually expanded inline and the fact that a good compiler always creates code only for those template functions used, and you will understand why C++ programs performed better than their equivallent C programs in http://www.research.att.com/~bs/esc99.html Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf=20 > Of Jason Hardman > Sent: Friday, October 05, 2001 3:32 AM > To: Dev-C++ > Subject: Re: [Dev-C++] Help with functions |