How do I use `__rvalue` expression on a struct property?

Timon Gehr timon.gehr at gmx.ch
Sun Apr 27 17:11:25 UTC 2025


On 4/27/25 04:41, Walter Bright wrote:
> Postblits and rvalue references do not mix.
> 
> Move constructors and rvalue references are a replacement for postblits. 

Postblits are for copies, not moves. The point of the `@disable 
this(this)` in OT's code is to disable copying. I guess instead the copy 
constructor should be disabled, but I still think it should not attempt 
to call a postblit on move.


More information about the Digitalmars-d mailing list