[fpc-pascal] Copy dynamic array

Michael Van Canneyt michael at freepascal.org
Wed May 16 08:54:47 CEST 2018



On Wed, 16 May 2018, denisgolovan wrote:

> Yes. 
> That's exactly why I gave that example.
> Your method with Move will trigger segfault eventually, so the compiler support is required to handle it properly.

But compiler support for copying records exists.

What's wrong with simply doing
  R2:=R1;
in the given examples ?

Michael.



More information about the fpc-pascal mailing list