[fpc-devel] Circular references and forward declarations

Marco van de Voort marcov at stack.nl
Wed Jan 6 11:45:22 CET 2010


In our previous episode, Florian Klaempfl said:
> > 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?

I don't like extremely large (> few thousand lines) units from an overview
perspective. But I'm no visibility micro-manager.




More information about the fpc-devel mailing list