[fpc-devel] Copy/move operator

Ryan Joseph genericptr at gmail.com
Thu Jun 20 00:18:51 CEST 2019



> On Jun 19, 2019, at 5:45 PM, Ben Grasset <operator97 at gmail.com> wrote:
> 
> I'm not sure why you'd necessarily need to implement Copy specifically for that kind of thing, though. Initialize and Finalize would be much more relevant, I'd say.
> 

Because a copy isn’t necessarily an assignment. See the dynamic array example again. The only way the record knows it was copied into the array is via the copy operator.

Regards,
	Ryan Joseph



More information about the fpc-devel mailing list