[fpc-devel] mising ansi string ref increase

Florian Klaempfl florian at freepascal.org
Thu Jul 22 09:48:54 CEST 2010


Am 22.07.2010 09:05, schrieb Paul Ishenin:
> 22.07.2010 14:49, Florian Klaempfl wrote:
>>> var
>>>    x: String;
>>>
>>> procedure Foo(const s: String);
>>> begin
>>>    x[1]:='X';  //  x:='';
>>>    writeln(s);
>>> end;
>>
>> This should not compile. The string is declared const, please fill a bug
>> report.
> 
> why it should not? 's' is declared as const but not the 'x'.

Ops, I missed this.



More information about the fpc-devel mailing list