[fpc-devel] Copy/move operator
    Ryan Joseph 
    genericptr at gmail.com
       
    Mon Jun 17 23:56:49 CEST 2019
    
    
  
> On Jun 17, 2019, at 5:16 PM, Ben Grasset <operator97 at gmail.com> wrote:
> 
> I can't actually check the assembly at the moment, but I'm pretty sure if your example was written like the following, it would not call `Copy` for the `TList<Integer>.Create(10)` assignment:
> 
The copy operator is always called on all assignments. Try actually running that and you’ll see. :)
Regards,
	Ryan Joseph
    
    
More information about the fpc-devel
mailing list