Accessing this of containing class

Mandeep Singh Brar mandeep at brars.co.in
Wed Feb 2 21:26:00 PST 2011


Hi,

Is there a method to access this reference of the container class
from an inner class. i.e.
class A {
class B {
   methodM() {
      callAnotherM(A::this or A.this);
   }
}
}

Thanks
Mandeep


More information about the Digitalmars-d-learn mailing list