Ryan,

If you want an example of a complete API implemented using reference counted interfaces than you could do worse than look at my Firebird Pascal API (See https://www.mwasoftware.co.uk/fb-pascal-api).

It's fully documented and works with both FPC and Delphi.

Tony Whyman
MWA


On 06/04/17 15:48, Ryan Joseph wrote:
On Apr 6, 2017, at 9:42 PM, Marcos Douglas B. Santos <m...@delfire.net> wrote:

Lose type checking?
Of course not. You still use the same language, interfaces, classes...

Don't confuse "New, the function" with "New, a method in a class".
I should say that you need to have a matching interface for all your classes, 
and if not then you’ll lose type checking. IAction needs to have all the 
methods in TAction for type checking to work right?

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to