[fpc-devel] C library header - var vs pointer for function arguments
skalogryz.lists at gmail.com
Thu Aug 4 02:18:03 CEST 2022
Consider backwards compatibility in fixes
On Wednesday, August 3, 2022, gabor via fpc-devel <
fpc-devel at lists.freepascal.org> 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)?
> function Foo(var A: Integer): Integer;
> function Foo(A: PInteger): Integer;
> fpc-devel maillist - fpc-devel at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel