security rule #1 : never assume anything...
2010/3/7 lyh1 <[email protected]>: > 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? > >> >> Message: 5 >> Date: Sun, 7 Mar 2010 00:17:03 +0100 >> From: Mattias Gaertner <[email protected]> >> Subject: Re: [fpc-pascal] Is it save to think default value of >> untouched string is ''? >> To: [email protected] >> Message-ID: <20100307001703.2a1b2...@limapholos> >> Content-Type: text/plain; charset=US-ASCII >> > >> >> SetLength does not initialize the string characters. >> ShortStrings are not always initialized. >> >> Mattias > > > _______________________________________________ > fpc-pascal maillist - [email protected] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
