[fpc-devel] Circular references and forward declarations

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jan 6 12:56:26 CET 2010


On 06 Jan 2010, at 12:14, Florian Klaempfl wrote:

> Different languages, different habits. I even consider putting every
> class in its own header and implementation file as a bad habit.  
> There is
> no reason to do anymore because modern C/C++ compiler can smartlink  
> on a
> sub-object level which they could not for years.

Another reason is probably to speed up the compilation:
* (re)compiling huge source files can be slow and/or require lots of  
memory, depending on the used compiler (and debug information or  
optimization settings)
* every separate C/C++ file can be compiled in parallel with all others


Jonas



More information about the fpc-devel mailing list