Consider backwards compatibility in fixes<div><br>On Wednesday, August 3, 2022, gabor via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd like to provide some fixes for packages that are headers for c libraries. When and should I use the "var" argument for function arguments that return a value, or should I always use pointers (excluding arguments that might accept nil)?<br>
<br>
Eg:<br>
function Foo(var A: Integer): Integer;<br>
vs<br>
function Foo(A: PInteger): Integer;<br>
<br>
Michał.<br>
______________________________<wbr>_________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" target="_blank">https://lists.freepascal.org/c<wbr>gi-bin/mailman/listinfo/fpc-de<wbr>vel</a><br>
</blockquote></div>