[fpc-devel] Suggestion: reference counted objects

Sven Barth pascaldragon at googlemail.com
Mon Sep 22 14:34:20 CEST 2014


Am 22.09.2014 14:19 schrieb "Michael Schnell" <mschnell at lumino.de>:
>
> On 09/22/2014 07:52 AM, Sven Barth wrote:
>>
>>
>> I openly *hate* the attribute syntax. It's just not Pascal and simply
copied from their .Net compiler, because hey, other .Net compilers do that
just like that... -.-
>>
> Maybe instead of attribute appropriate base classes could be provided.
>
> E.g. a (maybe fake) class "TRefCountedObject" that can be used instead of
TObject to inherit from.
>
> TRefCountedObject could provide the necessary properties and trigger some
compiler magic that uses them (similar to when using a class derived from
TInterfacedObject) and doing interface related syntax).

I already suggested the addition of a TARCObject as a general reference
counted base class in my RFC ;)

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


More information about the fpc-devel mailing list