[fpc-pascal] Const params question

Ryan Joseph ryan at thealchemistguild.com
Wed Oct 11 14:57:09 CEST 2017



> On Oct 11, 2017, at 5:01 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> No, you need constref then.

Ok, so constref/var are the same in terms of copying. The docs say const reduces stack size? I never label my parameters with const but maybe it’s worth it some cases.


Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list