On Wed, 11 Oct 2017, Ryan Joseph wrote:
If you declare a parameter as const does that effectively behave like
passing by reference? I have some performance sensitive functions that
take records as arguments and I don’t want copying to the stack so I’ve
been using @ but maybe const is just as good? Thanks.
No, you need constref then.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal