[fpc-devel] Suggestion: reference counted objects

Sven Barth pascaldragon at googlemail.com
Mon Sep 22 11:15:17 CEST 2014


Am 22.09.2014 09:47 schrieb "Michael Schnell" <mschnell at lumino.de>:
>
> AFAIR there already were several debates on ARC Objects that seem do be a
"modern" language feature but in Pascal language they are considered to
provide lots of pitfalls.
>
> Why not use "interface" to add ref-counting to an object ? This seems to
work nicely even though the name "interface" in not "speaking" on that
behalf.

Because you'll need to declare an interface for each class you want to have
reference counted so that you can access its methods, properties, etc.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140922/a09b1070/attachment.html>


More information about the fpc-devel mailing list