Yip, sorry - the docs state that that restriction applies to *published*
methods. I was going from memory and forgot the bit about it being published
methods.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 28, 2004 8:33 AM
Subject: RE: Re[2]: [DUG] Sundays stupid question
> ?????
>
> E.g.
>
> TForm1 = class(TForm)
> private
> { Private declarations }
> public
> { Public declarations }
> function SomeFunction(Param1: String): boolean; overload;
> function SomeFunction(Param1: Integer): boolean; overload;
> end;
>
> Compiles fine.
>
> C.
>
> -----Original Message-----
> From: Phil Middlemiss [mailto:[EMAIL PROTECTED]
>
> Also, you cannot overload a method that is declared in the same class -
> you can only overload in a descendant class.
> You have to use the overload directive in the base class, and again in
> the descendant class.
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi