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@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to