> On Sep 2, 2017, at 6:56 PM, Sven Barth via fpc-pascal
> <[email protected]> wrote:
>
> As Graeme said: the point is to code against interfaces, not classes. Don't
> pass around or work with the TBaseClass instance, instead only with the IHook
> interface. And this is what the implements feature is for.
>
>
Sorry I forgot about this.
So I learned that Supports() returns the correct interface (IHook in my
example) and THAT I can see is helpful now because the implementation of the
interface can be shared across many classes. That’s what I was looking for in
terms of a practical use patterns for “implements properties”. I should have
seen that at the start but I’m still hung up on how it’s implemented.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal