[fpc-devel]Method overloading
Peter Vreman
peter at freepascal.org
Tue Apr 29 17:54:00 CEST 2003
>
> On dinsdag, apr 29, 2003, at 14:28 Europe/Brussels, Peter Vreman wrote:
>
>> With overload you can also overload cross units:
>>
>> unit a;
>> procedure test(s:string);
>
> Don't you have to add "overload" here as well?
It is not required, but if unit a used a unit d that also provided a
procedure test then the procedure in unit d will not be available as
overload
>
>> unit b;
>> procedure test(i:longint);overload;
>>
>> program c;
>> uses b;
>> begin
>> test('string');
>> end.
More information about the fpc-devel
mailing list