[fpc-devel] Record with dynamic array of same type

Paul van Helden paul at planetgis.co.za
Wed Dec 9 15:06:34 CET 2009


Hi All,

In the beginning of this year I could compile this:

  TMyRecord = record
    Id: Integer;
    Name: String;
    ChildRecords: array of TMyRecord;
  end;

...but now with FPC 2.2.4 I get "Error: Illegal expression" on line 4

Why the change? (And if there is a good reason, could the error message 
be more descriptive?)

Regards,

Paul.



More information about the fpc-devel mailing list