[fpc-devel] Suggestion: reference counted objects
pascaldragon at googlemail.com
Thu Sep 25 11:55:26 CEST 2014
Am 25.09.2014 11:39 schrieb "Michael Schnell" <mschnell at lumino.de>:
> On 09/22/2014 11:25 PM, Sven Barth wrote:
>> Considering that those are two different features that don't have
anything to do with each other their development doesn't need to be
serialized, but can happen in parallel ;)
> Will the destructor of a reference counted object not be a kind of
anonymous/closure procedure ?
Why should it? When the reference count is decreased to zero (and thus the
final reference on the instance is gone) the destructor method is executed
(which is just a "obj.Destroy;"), simple as that (in reality it's a bit
more complex, but that's an implementation detail).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel