> On Feb 18, 2021, at 11:30 PM, Sven Barth wrote:
>
> The only thing that will not work and which will continue not to work is that
> m_circle.Draw will not be called if you access the TMyShape through a
> TShape.Draw call. For that one needs to use an explicit declaration:
>
> === code begi
Btw, here's point of reference for this other proposed syntax.
https://github.com/genericptr/freepascal/wiki/Default-Implements-Property
Regards,
Ryan Joseph
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.o
Ryan Joseph via fpc-pascal schrieb am
Fr., 19. Feb. 2021, 17:32:
> Btw, here's point of reference for this other proposed syntax.
>
> https://github.com/genericptr/freepascal/wiki/Default-Implements-Property
Your example is not quite correct and it's also not really complete: if a
class impleme
> On Feb 19, 2021, at 11:01 AM, Sven Barth via fpc-pascal
> wrote:
>
> Your example is not quite correct and it's also not really complete: if a
> class implements an interface there *must* be a parent class mentioned (at
> least TObject). Also your example should demonstrate that one can ca
Op 2021-02-19 om 16:50 schr
So the method resolution doesn't actually change the VMT table of the class,
just the interface?
See it like this: An interface is a fragment of VMT. All methods of the
interface are there in order.
If implemented right, it is like a pointer into the implementin
Am 19.02.2021 um 20:37 schrieb Ryan Joseph via fpc-pascal:
On Feb 19, 2021, at 11:01 AM, Sven Barth via fpc-pascal
wrote:
Your example is not quite correct and it's also not really complete: if a class
implements an interface there *must* be a parent class mentioned (at least
TObject). Als
> On Feb 19, 2021, at 3:14 PM, Sven Barth via fpc-pascal
> wrote:
>
> TObject *is* always the root, but the first entry of the inheritance list of
> a class *must* be a class as well.
I'm testing interface delegation now in ObjFPC mode and I don't see that
including TObject is required.
R
On Fri, 19 Feb 2021 15:37:03 -0700
Ryan Joseph via fpc-pascal wrote:
> > On Feb 19, 2021, at 3:14 PM, Sven Barth via fpc-pascal
> > wrote:
> >
> > TObject *is* always the root, but the first entry of the
> > inheritance list of a class *must* be a class as well.
>
> I'm testing interface del