On Thu, Oct 5, 2017 at 5:55 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > >> On Oct 5, 2017, at 12:28 PM, Sven Barth via fpc-pascal >> <fpc-pascal@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal