In D:

class A { // or struct
    A(ref int host) : _host(&host) { }
private:
    int* _host;
}

Since when do we have initialization lists in D? ;)

at topic: +1

Reply via email to