[fpc-devel] type pointer to record before record.

Florian Klaempfl florian at freepascal.org
Fri Apr 29 15:57:22 CEST 2011


Am 29.04.2011 15:51, schrieb Flávio Etrusco:
>> type
>>   TMyRecord = record
>>       mPrev : ^TMyRecord; // not allowed.
>>   end;
>
> Marco, only if you happen to know from the top of your head, would it
> be possible and without consequences to allow this kind of
> construction? (i.e. a pointer reference to itself)

No. Because TMyRecord could be already defined in another unit.





More information about the fpc-devel mailing list