[fpc-devel] dominant short strings in compiler source

peter green plugwash at P10Link.net
Tue May 16 20:00:18 CEST 2006


> s[0]=#255;
> fillchar(s[1],255,'a');
> s:=s+'a';
>
> ...will result in a string with 255 a's.
thats what it does at the moment, i don't see how this precludes adding a
compiler option to make doing this a run time error though (obviously
disabled by default for compatibility with existing code) and then compiling
the compiler with that option on.




More information about the fpc-devel mailing list