[fpc-pascal] Question about System.Move()

Bart bartjunk64 at gmail.com
Sat Jan 9 16:28:50 CET 2021


Hi,

This may be a silly question.
I use System.Move() to move items in a dynamic array, like
  Move(FData[0], FData[OldEnd], FStart*SizeOf(T));
Where T is the type of the elements in the array.
This seems to work as expected.

I have some questions though:

1. Does this depend on the alignment of the array?
2. Is it OK if the elements of the array are (or contain) managed types?
3. Are there caveats if T is a specialization of a generic type definition?

-- 
Bart


More information about the fpc-pascal mailing list