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

Paul van Helden paul at planetgis.co.za
Wed Dec 9 17:16:37 CET 2009


> I can't even compile it with FPC 2.0.4 (the oldest FPC version I have 
> lying around, and which was released in August 2006). What was the 
> previous FPC version that you used and which could compile the above?
>
>> (And if there is a good reason, could the error message be more 
>> descriptive?)
>
> I guess it should be possible to give an error similar to what Kylix 
> does:
>   tt.pp(9) Error: Type 'TMyRecord' is not yet completely defined
>
Sorry, I was confused. It must have been something I tried some months 
ago and abandoned. The source file is more recent than the compiled 
executable.
I do hope someday soon it will be possible with FPC to
 TMyRecord = record
   Id: Integer;
   Name: String;
   ChildRecords: array of TMyRecord;
 end;
:-)



More information about the fpc-devel mailing list