[fpc-devel] Suggestion: reference counted objects
pascaldragon at googlemail.com
Mon Sep 22 07:54:19 CEST 2014
On 21.09.2014 20:28, Boian Mitov wrote:
> Ahh... the schizophrenic nature of Object Pascal :-D, I never understood
> why interface and class should be different at first place, considering
> that interface is practically nothing more than pure abstract class with
> ref. counting. Why the separated syntax etc. is beyond me... Surely
> helps with the language keyword pollution....
It's different, because interfaces were originally introduced to support
interfacing with COM and the automatic reference counted was just added
as a big pile of sugar to simplyfy development in context with COM.
Because in C++ you have to call AddRef and Release yourself...
More information about the fpc-devel