Consider backwards compatibility in fixes

On Wednesday, August 3, 2022, gabor via fpc-devel <
[email protected]> wrote:

> 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)?
>
> Eg:
> function Foo(var A: Integer): Integer;
> vs
> function Foo(A: PInteger): Integer;
>
> MichaƂ.
> _______________________________________________
> fpc-devel maillist  -  [email protected]
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to