----- Original Message -----
From: "Andreas Toth" <[EMAIL PROTECTED]>
Sent: Wednesday, August 21, 2002 3:17 PM
Subject: RE: [DUG]: Overriding and Inheriting Function Methods


> I forgot to state that if I add the name of the function after inherited
it
> works, but why?

I would guess, without an in-depth knowledge of how Delphi's 'inherited'
keyword works, that your original assumption about it always being a
procedure call was close to the mark.  Either that or it's doing something
wierd with object/reference types behind your back... which is something
I've always suspected Delphi of, to be honest.

When you insert a 'inherited.method' call though it's treating 'inherited'
as the class your subclass descends from, so it's a proper
function/procedure call depending on the method.

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to