[fpc-devel] Circular references and forward declarations

Florian Klaempfl florian at freepascal.org
Wed Jan 6 11:42:23 CET 2010

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?

More information about the fpc-devel mailing list