[fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Graeme Geldenhuys
Hi Regarding bug #12778 http://bugs.freepascal.org/view.php?id=12778 Like I said before, I am no expert in using Interfaces. But why can't I do the following (see code below), which works perfectly when I run the program. Using delegation define or usecorba define in any combination. It's the

Re: [fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2009, Graeme Geldenhuys wrote: Hi Regarding bug #12778 http://bugs.freepascal.org/view.php?id=12778 Like I said before, I am no expert in using Interfaces. But why can't I do the following (see code below), which works perfectly when I run the program. Using delegation defi

Re: [fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 4:55 PM, Michael Van Canneyt wrote: > > The difference is that you have access to the THook methods/properties. > THook just 'happens' also to implement the interface you need. Ah, I get it now. So with delegation of a class you get two-in-one. Access to the class methods