[fpc-devel] mising ansi string ref increase

Paul Ishenin ip at kmiac.ru
Thu Jul 22 09:05:08 CEST 2010


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'.

Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list