[fpc-pascal] Feature Announcement: Support for multiple active helpers per type

Sven Barth pascaldragon at googlemail.com
Fri May 10 23:55:01 CEST 2019


Am 10.05.2019 um 22:21 schrieb Mattias Gaertner via fpc-pascal:
> On Fri, 10 May 2019 21:56:56 +0200
> Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
>> [...]
>> We are pleased to announce that Free Pascal now supports the usage of
>> multiple active helper types per extended type. This feature has been
>> developed by Ryan Joseph, so thank you very much Ryan.
> Thanks Ryan!
>
>   
>> [...]
>> program testA;
>>
>> uses
>>     test1, test2;
>>
>> var
>>     o: TObject;
>> begin
>>     Writeln(o.Func); // will print 2
>> end.
>>
>> program testB;
>>
>> uses
>>     test2, test1;
>>
>> var
>>     o: TObject;
>> begin
>>     Writeln(o.Func); // will print 1
>> end.
> Ehm, these two examples only demonstrates that the last helper wins.
> They do not demonstrate multihelpers, do they?
Well, if you'd add the methods from the first test you'd see that both 
helpers are available and that for Func the last helper wins...

Regards,
Sven



More information about the fpc-pascal mailing list