[fpc-pascal] Class helper method overloading ?

LacaK lacak at zoznam.sk
Wed Oct 12 13:40:04 CEST 2016


> Why not create a descendent class simply ?
Yes it is what I have used ;-)
I have one instance of variable:
{$IFDEF xxx}
   Query: TRemoteQuery;
{$ELSE}
   Query: TSQLQuery;
{$ENDIF}
TRemoteQuery has ExecSQL(A,B) as own method.
I wanted use TSQLQuery but only difference is missing ExecSQL(A,B) so I 
want create helper and add this missing method.

I know that I can solve it with descendant, which I did before, but I am 
still interesting if it is possible do with helper and in general if 
there can be overloaded method ...

-Laco.




More information about the fpc-pascal mailing list