[fpc-devel] circular uses clauses

peter green plugwash at p10link.net
Fri Oct 3 18:28:02 CEST 2008


>
> Because a Pascal compiler parses the interface section of an unit only 
> once, ... 
IMO what would fix a lot of the problem would be a "cross unit forward 
declaration", that is a way to tell a compiler "this type is a class 
type declared in unit x that is all you need to know for now" (afaict 
that is all the compiler needs to know to compile a function prototype 
or similar)

The current situation means that a set of interrelated classes often 
must either all be put in the same unit or do a lot of typecasting.



More information about the fpc-devel mailing list