[fpc-pascal] Is it save to think default value of untouched string is ''?
lyh1win at hotmail.com
Sun Mar 7 13:54:04 CET 2010
But ShortStrings also store the length in string. If I do a append, I
think the string will append to string....
So don't assume string are always initialized with null string?
> Message: 5
> Date: Sun, 7 Mar 2010 00:17:03 +0100
> From: Mattias Gaertner <nc-gaertnma at netcologne.de>
> Subject: Re: [fpc-pascal] Is it save to think default value of
> untouched string is ''?
> To: fpc-pascal at lists.freepascal.org
> Message-ID: <20100307001703.2a1b2bb9 at limapholos>
> Content-Type: text/plain; charset=US-ASCII
> SetLength does not initialize the string characters.
> ShortStrings are not always initialized.
More information about the fpc-pascal