[fpc-pascal] interface inheritance implementation

Sven Barth pascaldragon at googlemail.com
Tue Oct 13 11:16:04 CEST 2015

Am 13.10.2015 08:37 schrieb "David Emerson" <david at angelbase.com>:
> So far I have not figured out how to typecast an interface into its
implementing class, which would be an alternate solution for my particular

As long as it's a COM-style interface you can use "intf as classtype". Be
aware though that you can get problems with reference counting as the class
instance won't be subject to the reference counting like the interface
instance is.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151013/e45f9c88/attachment.html>

More information about the fpc-pascal mailing list