[fpc-devel] (ref types / circles) Re: Defer keyword

Martin Frb lazarus at mfriebe.de
Fri May 7 01:41:37 CEST 2021


On 07/05/2021 01:36, Nikolai Zhubr via fpc-devel wrote:
>
> Indeed. However, unfortunately classes are substantially different in 
> that they can cause reference circles,
You can already cause ref circles, no classes needed.

type
   TR = record
     a: array of TR;
   end;

var
   x: TR;
begin
   SetLength(x.a,99);
   x.a[0] := x;
end.




More information about the fpc-devel mailing list