DIP 1014:Hooking D's struct move semantics--Community Review Round 1

Kagamin spam at here.lot
Fri May 18 09:38:53 UTC 2018


On Thursday, 17 May 2018 at 19:13:48 UTC, Shachar Shemesh wrote:
> The only inherent non @safe thing we advocate here is if you 
> want to be able to move const/immutable structs, in which case 
> DIP 1014 advocates casting the constness away. That will, of 
> course, have to be either @system or @trusted.

There's an idea to give const postblit ability to write, but it's 
difficult to make such exception for operator method, a possible 
syntax can be `this(this, const ref S prev)`


More information about the Digitalmars-d mailing list