[fpc-devel] Suggestion: reference counted objects

Boian Mitov mitov at mitov.com
Mon Sep 22 19:30:02 CEST 2014


Because it requires writing a lot more code, just to get the Ref. Count, and 
as I stated in another mail, you don't have direct field access.

With best regards,
Boian Mitov

-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message----- 
From: Michael Schnell
Sent: Monday, September 22, 2014 12:47 AM
To: fpc-devel at lists.freepascal.org
Subject: Re: [fpc-devel] Suggestion: reference counted objects

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.

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




More information about the fpc-devel mailing list