Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Bart via fpc-devel wrote: On Mon, Dec 20, 2021 at 12:07 PM Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a hint that the contents of the parame

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Bart via fpc-devel
On Mon, Dec 20, 2021 at 12:07 PM Martin Frb via fpc-devel wrote: > https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > > Specifying a parameter as Constant is giving the compiler a hint that > the contents of the parameter will not be changed by the called routine.

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: On 20/12/2021 12:29, Michael Van Canneyt wrote: On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Sp

[fpc-devel] Random branchless coding video!

2021-12-20 Thread J. Gareth Moreton via fpc-devel
Hi everyone, So I stumbled across this Australian programmer who talks about branchless programming and assembly-level optimisations, and it's interesting because he points out the pitfalls of trying to out-optimise the compiler.  Just a random thing I thought the compiler developers might be

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Martin Frb via fpc-devel
On 20/12/2021 12:29, Michael Van Canneyt wrote: On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a h

Re: [fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Michael Van Canneyt via fpc-devel
On Mon, 20 Dec 2021, Martin Frb via fpc-devel wrote: Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a hint that the contents of the parameter will not be

[fpc-devel] Minor doc error about "const param"

2021-12-20 Thread Martin Frb via fpc-devel
Actually an commission, but an important one. https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4 > Specifying a parameter as Constant is giving the compiler a hint that the contents of the parameter will not be changed by the called routine. "by the called routine.