ref & address

Chris wendlec at tcd.ie
Wed Apr 16 09:05:39 PDT 2014


The following:

     this(ref InputRange r) {
       writeln(&r);
       this.r = r;
       writeln(&this.r);
     }


7FFF2BD74D50  // r
7FFF2BD745F0  // this.r

Why? And how can I change this?


More information about the Digitalmars-d-learn mailing list