[fpc-devel] Const optimization is a serious bug
Marcos Douglas
md at delfire.net
Sat Jul 9 17:51:35 CEST 2011
On Sat, Jul 9, 2011 at 12:40 PM, Thaddy <thaddy at thaddy.com> wrote:
> Isn't it time to cut this discussion short? const means do not modify! full
> stop! whatever by reference or value. The rest is bovine extrement.
Not so fast.
As Hans-Peter Diettrich said: "Pascal "const" parameters are
optimization hints in the first place, the write protection of
parameters is a less important item instead".
Is very important, for optimizations, we know if the parameter is
passed by reference or value... don't you think?
Marcos Douglas
More information about the fpc-devel
mailing list