[fpc-pascal] Const params question

Ryan Joseph ryan at thealchemistguild.com
Wed Oct 11 11:25:24 CEST 2017

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.

	Ryan Joseph

More information about the fpc-pascal mailing list