I want to get address of object Cfoo in constructor. Whether it is possible?

now:
-------------
class Cfoo {
        void* adrThis;
        void saveThis(void* adr) {      adrThis = adr; }
}
...
Cfoo foo = new Cfoo(); foo.saveThis(&foo);

shall be
--------------
class Cfoo {
        void* adrThis;
        this() {
                adrThis = ?????????
        }
}
...
Cfoo foo = new Cfoo();

Reply via email to