[fpc-pascal]Forward type declaration

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Wed Apr 23 22:28:01 CEST 2003


On 23 Apr 2003, Johann Glaser wrote:

> Hi Peter!
>
> > It is already possible.
> >
> > You need to define a pointer type to the record first. See the example for
> > a linked list:
> >
> > 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 ?

Michael.




More information about the fpc-pascal mailing list