Calls `this(this)` extra with delegate stuff in the code

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at
Sat Jan 21 15:36:29 PST 2017

On 01/21/2017 03:19 PM, Ali Çehreli wrote:

>     this(this) {

TIL! Change the signature and it works without copies:

     this(const(this)) {
         // ...

How did I miss this for so long?


More information about the Digitalmars-d-learn mailing list