[fpc-pascal] String and dynamic array initialisation
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Thu Feb 10 17:04:14 CET 2011
Jonas Maebe wrote:
> On 10 Feb 2011, at 16:21, Mark Morgan Lloyd wrote:
>
>> Are there any cases where a string variable will be allocated with
>> anything other than zero length,
>
> In case it's a shortstring, the initial data could be anything.
>
>> or a dynamic array will be allocated with anything other than zero
>> elements?
>
> No.
Thanks Jonas, it was mainly the dynamic array case that I was interested
in. Presumably a string defined without an explicit length is a
longstring and starts empty.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list