Board index » delphi » Record Class Forward Declaration

Record Class Forward Declaration

Can record types be forward declared?

If so what is the syntax for it?

Bill

 

Re:Record Class Forward Declaration


On 08 Apr 2004, "Bill Gage" <bill.g...@dmacorporation.com> wrote:

Quote
> Can record types be forward declared?

> If so what is the syntax for it?

No.  This sort of thing was typically done with pointers like so:

type
  pRec = ^tMyRecord;

  tMyRecord = record
    field1   : integer;
    field2   : integer;
    previous : pRec;
    next     : pRec;
  end;

--
-Mike (TeamB)

Other Threads