[fpc-pascal] Interfaces works in FPC 2.6.4 but not in 3.0.2
Marcos Douglas B. Santos
md at delfire.net
Sun May 7 15:49:21 CEST 2017
On Sat, May 6, 2017 at 7:37 PM, Graeme Geldenhuys
<mailinglists at geldenhuys.co.uk> wrote:
> var
> cmd: ICmdLineParams;
> begin
> if Supports(fpgApplication, ICmdLineParams, cmd) then // <<<< Never works
> begin
> ...
> end;
> end.
>
>
> fpgApplication is a global instance of TfpgApplication.
>
> The line marked with "Never works" never works with FPC 3.0.2, but
> it does with FPC 2.6.4.
>
> Can anybody explain this?
The same here. It did not work neither CORBA nor COM.
I've tried to use the property as public too, but did not work either.
I use delegation by properties a lot, but this haven't broke my code
because I do not use inheritance... but definally this is a bug.
Best regards,
Marcos Douglas
More information about the fpc-pascal
mailing list