[fpc-devel] Suggestion: reference counted objects
Boian Mitov
mitov at mitov.com
Sat Sep 20 23:21:44 CEST 2014
The short story is that any approach has issues.
The component container approach has issue of a single ownership with the
easy loss of pointers.
The ref counting has the danger of circular references.
The GC has the non deterministic behavior (Actually I proposed a
deterministic/semideterministic GC algorithm ~8 years ago or so, but that is
a different story).
The point is that even with GC the developer is still required to carefully
manage resources, and GC tends to make it even more complex.
>From all the the above approaches the ARC with optional Weak pointers is the
easiest to manage and the one that tends to lead to the least problems IMHO
.
With best regards,
Boian Mitov
-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message-----
From: Gennady Agranov
Sent: Saturday, September 20, 2014 1:54 PM
To: fpc-devel at lists.freepascal.org
Subject: Re: [fpc-devel] Suggestion: reference counted objects
I will address multiple previous e-mails on this subject :)
More information about the fpc-devel
mailing list