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@lists.freepascal.org
Subject: Re: [fpc-devel] Suggestion: reference counted objects

I will address multiple previous e-mails on  this subject :)

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

Reply via email to