[fpc-devel] Circular references and forward declarations

Juha Manninen juha.manninen at phnet.fi
Tue Jan 5 18:05:18 CET 2010

On tiistai, 5. tammikuuta 2010 18:39:21 Florian Klaempfl wrote:
> I knew all the reasoning, but honestly, I don't see a point in it. I
> used C++ for years professionally and I always avoided circular
> references/implementing classes in different files than the header is
> named so I see no need in pascal either (and I never needed it).

In real programs there are classes that are big and are logically their own 
entities (or how to put it), but still they must refer to other similar 
classes in other units. I don't know how you have solved this without putting 
everything into one big file.

I mentioned 2 examples, Virtaual TreeView and Lazarus that have huge source 
files. My own programs suffer from the same thing (but they are not published, 
can't show them now).

Juha Manninen

More information about the fpc-devel mailing list