Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: