[fpc-devel] Const optimization is a serious bug

Martin fpc at mfriebe.de
Thu Jul 7 20:42:46 CEST 2011


On 07/07/2011 19:12, Alexander Klenin wrote:
>
>> Neither do I advocate  to use const, unless you know what you do..... And if
>> anyone advocates it, then it's a problem (but not a problem of the feature)
> Just google "const string parameter Delphi" to see the advocating.
>

That's a different issue.

I have stated several times that to me "const param" is  similar like 
"fillchar(StringArray[0], x, 0)"

for both you need to be aware of certain details abstracted from the 
average use.



More information about the fpc-devel mailing list