From kde-core-devel Sun Mar 07 09:40:05 2004 From: "Dr. Juergen Pfennig" Date: Sun, 07 Mar 2004 09:40:05 +0000 To: kde-core-devel Subject: Re: (1) how to hide helper classes (2) KDE_NO_INLINE missing? Message-Id: <200403071040.06420.info () j-pfennig ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=107865242422039 On Sunday 07 March 2004 09:38, Simon Hausmann wrote: > This probably sounds stupid, but: Why not simply make the function not > inline instead? In that part of the world were 95% of all programmers work the compiler can be very aggressive with inlining. It grabs almost everything (think about dtors of long-lived classes or error handling code) and makes the program larger if you don't give it some hints. Also for that compiler there is little need to place something in a .cpp file - you better put things in header files there. The .cpp files are there mostly for "historic" reasons. Their linker is quite smart (and must be, see .cpp files above) - it optimizes away whatever is not used or exported (from a DLL). Your Juergen