[fpc-pascal] parent class as a parameter type

Bart bartjunk64 at gmail.com
Tue Nov 15 10:10:53 CET 2011


On 12.11.2011 22:18, ik wrote:
> Since 2.6.0, when you write something like this:
>
> procedure foo(AClass : TStrings);
> foo(MyStringList); // Will return an error that TStrings is expected ...
>

That would be strange indeed, because then most events (onclick
handlers etc) would not compile anymore, since they are in the format
procedure(Sender: TObject) of object...

Bart



More information about the fpc-pascal mailing list