<div dir="ltr">Hi everyone,<div><br></div><div>Wait, I'm slightly confused. It seems people are talking about two different things:</div><div>1. Continuous memory as seen by the program running.</div><div>2. Actually physically contiguous memory.</div>
<div><br></div><div>It was my understanding that strings and dynamic arrays are allocated as a single block, and thus from the program's point of view, their contents should be continuous. (Short strings certainly are!).</div>
<div>If the OS is using VM Mapping to convert two blocks of free memory into a single block for your program, I assume that would affect an array of byte just as much as a string. (Am I missing something?)</div><div><br>
</div><div>Thank you,</div><div> Noah Silva</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/16 Carsten Bager <span dir="ltr"><<a href="mailto:carsten@beas.dk" target="_blank">carsten@beas.dk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My code was just an example, to illustrate what I was aiming at. It is not actually used.<br>
But I think you have a point<br>
<span class="HOEnZb"><font color="#888888"><br>
Carsten<br>
</font></span><div class="im HOEnZb"><br>
> Why not just skip all the encoding uncertainity of strings and use an<br>
> array of byte/char?<br>
><br>
> It'll probably be a lot faster too<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>