[fpc-pascal] parent class as a parameter type
Sven Barth
pascaldragon at googlemail.com
Thu Nov 17 15:03:13 CET 2011
Am 17.11.2011 09:23, schrieb ik:
> It's not allowed in Delphi in case of a var/out parameter. It's
> allowed in both FPC and Delphi in case of a value/const parameter.
>
>
> Sorry for the late response, but why does out and var limit this issue ?
> I understand that it does, but not the reason for it.
The reason is mentioned in the link I sent you:
http://wiki.freepascal.org/User_Changes_2.6.0#Passing_derived_classes_to_var-_and_out-parameters
Regards,
Sven
More information about the fpc-pascal
mailing list