Sooky Boo wrote:
Found a solution.

Copy() only works for one level deep and since using fpc 2.2.4 the array became two levels deep.

Solution copy array A to array B using copy, then for each element of array B copy nested array from A to B.
------------------------------------------------------------------------

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel
But that is not a bug: that is by design and is also the way Delphi (and other languages) should and do behave.. Only a record with simple types (incl. shortstrings) are fully copied with a move(). Not pointer dependencies.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to