[fpc-devel] circular uses clauses

Marco van de Voort marcov at stack.nl
Fri Oct 3 15:27:03 CEST 2008


In our previous episode, Graeme Geldenhuys said:
> 
> Quote from CodeGear news
> "circular uses clauses - why can't I declare two classes in two units
> that refer to each other? Why doesn't forward declarations cope with
> this? I've got this feature in C, C++ and C# why not Delphi?"
> 
> That's a good question... Why can't FPC allow that either?  I don't
> know the internals of FPC, but can't FPC simply keep a list of used
> units as it compiles, so it simply skips any later references. What is
> the technical issue?  I'm just curious here.

Why do I have to put my files in a directory hierarchy and central (GAC)
registries in C# and Java? Why can't I just throw all in one dir and let the
compiler figure it out, like in FPC ?





More information about the fpc-devel mailing list