<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi there,</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">
I just want to confirm one thing:</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">var</div><div class="gmail_default" style="font-family:courier new,monospace">
a, b: array of Integer;</div><div class="gmail_default" style="font-family:courier new,monospace">begin</div><div class="gmail_default" style="font-family:courier new,monospace"> SetLength(a, 100);</div><div class="gmail_default" style="font-family:courier new,monospace">
SetLength(b, 100);</div><div class="gmail_default" style="font-family:courier new,monospace"> a := b;</div><div class="gmail_default" style="font-family:courier new,monospace">end.</div><div class="gmail_default" style="font-family:courier new,monospace">
<br></div><div class="gmail_default" style="font-family:courier new,monospace">Now "a" will point to the same memory block as "b". Since dynamic arrays are ref counted, I don't need to worry about the memory originally allocated for "a", right?</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,</div><div class="gmail_default" style="font-family:courier new,monospace">
Xiangrong</div></div>