But ShortStrings also store the length in string[0]. If I do a append, I think the string will append to string[1]....
So don't assume string are always initialized with null string?
Show quoted text 16 lines
Message: 5
Date: Sun, 7 Mar 2010 00:17:03 +0100
From: Mattias Gaertner
Subject: Re: [fpc-pascal] Is it save to think default value of
untouched string is ''?
To:
Message-ID:
Content-Type: text/plain; charset=US-ASCII
SetLength does not initialize the string characters.
ShortStrings are not always initialized.
Mattias
