Hacker News new | ask | show | jobs
by fm77 1387 days ago
Well, not really. Consider the following:

  type
      ItemPtr = ^Item;

      SomeOtherType = record
        a,b,c:integer;
      end;

      Item = record
        Data:string;
        Next:ItemPtr;
      end;
The first time the parser hits "Item", its not defined.
1 comments

Pascal require(s|d) a "forward" declaration on such a type, no?