[fpc-pascal] Managed properties idea

Marcos Douglas B. Santos md at delfire.net
Thu Oct 5 14:06:43 CEST 2017


On Thu, Oct 5, 2017 at 5:55 AM, Ryan Joseph <ryan at thealchemistguild.com> wrote:
>
>> On Oct 5, 2017, at 12:28 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>
>> The way to go in Object Pascal are reference counted interfaces (aka COM-style interfaces). After all one should program against an interface anyway and that reference counted interfaces are automatically handled by the compiler is an added bonus.
>>
>>
>
> example? I’ve been doing retain management manually and honestly I prefer that for some cases where I want more control so I still like that syntax option.
>

As Sven told you, just use COM Interfaces.
Look this explanation ->
http://castle-engine.io/modern_pascal_introduction.html#_corba_and_com_types_of_interfaces
but don't pay attention when to author says "Ugly (COM) interfaces"
because it is not. :)

Really, it is not.

Best regards,
Marcos Douglas



More information about the fpc-pascal mailing list