[fpc-pascal] Published -> Public
marc at dommelstein.net
Sun Apr 18 00:57:24 CEST 2010
> procedure TChild.Foo;
> inherited; // or: inerithed Foo;
> // do more
> I thought that in this last case, the compiler would know, that
> inherited points to TBase.Foo; and the compiler would optimize the code,
> to call directly (skipping the VMT) ?
> But I guess I am wrong about that? OR how else could the above work?
Your correct, thats why toyu are not allowed to use inherited in these
// do more
More information about the fpc-pascal