DIP 1014

Walter Bright newshound2 at digitalmars.com
Wed Oct 3 01:10:23 UTC 2018


On 10/2/2018 4:30 PM, Adam D. Ruppe wrote:
> On Tuesday, 2 October 2018 at 22:30:38 UTC, Jonathan M Davis wrote:
>> Yeah. IIRC, it was supposed to be _guaranteed_ that the compiler moved structs 
>> in a number of situations - e.g. when the return value was an rvalue. 
>> Something like
> 
> Eh, I don't think that moves it, but rather just constructs it in-place for the 
> next call.

The technical term for that is "copy elision".


More information about the Digitalmars-d mailing list