[fpc-pascal] question with interfaces, hooks

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jul 15 09:26:33 CEST 2015


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;


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/



More information about the fpc-pascal mailing list