<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 29/12/2018 22:35, Jonas Maebe wrote:<br>
</div>
<blockquote type="cite"
cite="mid:eb380b035de744fe53a6028ef76828f1@watlock.be"><br>
1) Dynamic arrays are initialised with nil, but that is an
implementation detail (required by the fact that they are
reference counted: if they would contain random data, that would
cause crashes)
<br>
</blockquote>
<br>
Is it? <br>
<br>
Because according to
<a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/ref/refse24.html">https://www.freepascal.org/docs-html/ref/refse24.html</a><br>
<blockquote type="cite">Managed types are an exception to this rule:
Managed types are always initialized: in general this
means setting the reference count to zero, or setting the pointer
value of the type to <span class="cmtt-10">Nil</span>. </blockquote>
It is documented, which makes it a documented feature?<br>
<br>
Also
<a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/ref/refse20.html#x50-680003.9">https://www.freepascal.org/docs-html/ref/refse20.html#x50-680003.9</a><br>
states explicitly that they are initialized to nil (and there is no
restriction that local var are exempt from that).<br>
<br>
<br>
<br>
</body>
</html>