Ryan Joseph via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am Fr., 7. Mai 2021, 05:58:
> > > > On May 6, 2021, at 7:14 PM, Ryan Joseph <generic...@gmail.com> wrote: > > > > This can be detected at compile and at least give a warning. "a" is a > member of TR and the element type of "a" is TR, then we're assigning TR to > said array. It's that simple I think. > > It also occurs to me that record management operators already allow these > types of circular references. It's just par for the course with ref > counting and something programmers need to be aware of. > As said the main problem of reference counting on object instances, especially if enabled by default like the Delphi NextGen compiler did, will lead to problems in *existing* code and thus is a no-go. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel