On Sun, 7 Mar 2010 01:13:05 +0200 Juha Manninen <juha.manni...@phnet.fi> wrote:
> > Sorry ... What ? It must be garanteed in ansistring mode! or > > everything will simple kboom! There is no way to initialize a non > > initialized string. > > By initializing I mean: > str:=''; > or some other assignment. > I remember having garbage in strings in Delphi when I assumed they are empty. > Or was it only with function's string return value, I am not sure. > Anyway, after that I was careful to always assign my strings. > > Maybe it is not true with FPC. SetLength does not initialize the string characters. ShortStrings are not always initialized. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal