[fpc-pascal] parent class as a parameter type

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Nov 14 21:20:42 CET 2011


On Sun, Nov 13, 2011 at 5:56 PM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> Luckily I could change my code to TStringList to work around the
> problem.

One can type-cast to get around the issue, so then method declarations
don't need to be changed:

foo(TStrings(MyStringList));


-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list