<div dir="ltr"><div class="gmail_quote">On Thu, Nov 17, 2011 at 16:03, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Am 17.11.2011 09:23, schrieb ik:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's not allowed in Delphi in case of a var/out parameter. It's<br>
allowed in both FPC and Delphi in case of a value/const parameter.<br>
<br>
<br>
Sorry for the late response, but why does out and var limit this issue ?<br>
I understand that it does, but not the reason for it.<br>
</blockquote>
<br></div>
The reason is mentioned in the link I sent you: <a href="http://wiki.freepascal.org/User_Changes_2.6.0#Passing_derived_classes_to_var-_and_out-parameters" target="_blank">http://wiki.freepascal.org/<u></u>User_Changes_2.6.0#Passing_<u></u>derived_classes_to_var-_and_<u></u>out-parameters</a><br>
</blockquote><div><br>I read it, but I do not understand it.<br><br>TStrings is a class. TStringList is a class inherited from TStrings. How does it prevent the type checking ?<br>As I remember, if I placed there "TFom" based class, it will not like it and report and error. That's why I do not understand it I guess.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Regards,<br>
Sven<br>
<br>
______________________________<u></u>_________________<div class="HOEnZb"><div class="h5"><br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>