> On Sep 6, 2017, at 2:50 PM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> 
> wrote:
> 
> There is NO need to make Hook public, because you can always get access to 
> that functionality via the Supports() call and get a reference to IHook.

The Supports() call is the key takeaway here.

For the sake of discussion can you see why it makes sense that “hook.” syntax 
would be implied because the class does indeed supposedly implement the 
interface? Everything about the syntax says that the methods in IHook should be 
in TBaseClass so I can’t help but feel like it was an omission or not fully 
finished. It would be messy to implement probably because you would risk a 
number of name collisions with existing methods.

Regards,
        Ryan Joseph

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

Reply via email to