[fpc-devel] 019605: Safety check for "const s: string" (similar to Range or Overflow checks)

Florian Klämpfl florian at freepascal.org
Thu Jun 23 22:37:57 CEST 2011


Am 23.06.2011 22:36, schrieb Martin:
>>
>> procedure Foo(const s: string);
>>    begin
>>      proc;
> I assume the below is supposed to be the hidden / automatic check?

Yes.

> (since the above was the unwarranted change to s)
> 
> But what does it test (besides from being an assignment?

This is only to demonstrate that checkpointer detects the error.



More information about the fpc-devel mailing list