Am 15.07.2015 09:27 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2015-07-15 05:06, David Emerson wrote:
> > So... since t_fancy_class implements the interface i_foo, why is
> > t_fancy_class.foo not available?
>
> Because you told it a property named "hook" implements it, so you need
> to call it as follows:
>
>   fc.hook.foo;

"implements" should avoid the need for this. It merely tells the compiler
to look for methods using that property. The property could even be
protected or private and it should still work as long as the containing
class has the interface in its parent list.

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

Reply via email to