[fpc-devel] Circular references and forward declarations

Florian Klaempfl florian at freepascal.org
Wed Jan 6 11:48:30 CET 2010

Florian Klaempfl schrieb:
> Juha Manninen schrieb:
>> Still, best solution has been to put everything into one big file. And still, 
>> I don't like that compiler forces such a thing.
> The compiler forces you many other things. Still, I don't get what's the
> problem with a large unit if it's really needed (and nothing like
> abstract base classes or interfaces or type casts or ... helps). Stuff
> closely depending on each other should end in the same unit. You even
> cannot test a unit with external circular class references without the
> other involved units. So why should the stuff be separated?

Add: FPC can also smartlink large units so no need to split stuff into
thousands of object files.

More information about the fpc-devel mailing list