<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sooky Boo wrote:
<blockquote
cite="mid:528820920903130934k5f060ebbq81080b8c15b2eabd@mail.gmail.com"
type="cite">Found a solution.
<div><br>
</div>
<div><span>Copy() only works for one level deep and since using fpc
2.2.4 the array became two levels deep.</span><br>
<br>
<span>Solution copy array A to array B using copy, then for each
element of array B copy nested array from A to B.</span><br>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
But that is not a bug: that is by design and is also the way Delphi
(and other languages) should and do behave..<br>
Only a record with simple types (incl. shortstrings) are fully copied
with a move(). Not pointer dependencies.<br>
</body>
</html>