Discussion Thread: DIP 1040--Copying, Moving, and Forwarding--Community Review Round 1

Max Haughton maxhaton at gmail.com
Sun Mar 21 21:33:47 UTC 2021


On Sunday, 21 March 2021 at 14:48:49 UTC, deadalnix wrote:
> On Sunday, 21 March 2021 at 07:51:45 UTC, Max Haughton wrote:
>> Godbolt example?
>
> https://godbolt.org/z/eK7dYx
>
> You'll note that there are no loads in the generated code.

Is that strictly a move or "just" the struct ABI? i.e. If I add a 
destructor then we do go through [RDI].

https://godbolt.org/z/bn4nrEbnn

dmd also generates the same code (minus some peephole 
optimizations for the stack operations - not trying to nerd snipe 
Walter!)


More information about the Digitalmars-d mailing list