[fpc-pascal]Forward type declaration
Johann.Glaser at gmx.at
Wed Apr 23 22:31:28 CEST 2003
> > > type
> > > PRec = ^TRec
> > > TRec = record
> > > next : PRec;
> > > end;
> > I tried this. But therefore the declaration of TRec must be immediately
> > after the declaration of PRec. Nothing can be in between. But this would
> > be necessary for my case.
> I don't see why ? Please explain ?
The compiler complains if there is something in between.
HA! I found it: There must not be another "Type" keyword in between.
Could you please add "forward type declarations" and this important fact
to the documentation?
Johann Glaser <Johann.Glaser at gmx.at>
Vienna University of Technology
____ http://www.johann-glaser.at/ ____
More information about the fpc-pascal