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. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
