[fpc-pascal]inherited keyword
Florian Klaempfl
Florian.Klaempfl at gmx.de
Sun Dec 21 17:36:00 CET 2003
Mattias Gaertner wrote:
> Can someone explain the semantic difference between *1 and *2 please?
>
> procedure A(p: Type1);
> begin
> inherited; // *1
> inherited A(p); // *2
> end;
>
> ?
1: supporting a delphi bug
2: as you expect
Well, the comment to 1 isn't completly true: In method handlers
(declared with message XXX), a simply inherited should pass the message
to the parent message handle while in usual methods it does nothing.
More information about the fpc-pascal
mailing list