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]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal