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.


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to