(1) how to hide helper classes (2) KDE_NO_INLINE missing?

Dr. Juergen Pfennig info at j-pfennig.de
Sun Mar 7 09:40:05 GMT 2004


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




More information about the kde-core-devel mailing list