"Class.this" equivalent ?

Dan ddaglas at gmail.com
Tue Jan 2 10:01:27 PST 2007


All,

How can I access a reference to an enclosing class in D? ... something similar
to the following Java code:

class A {
  class B {
    A ref;
    B() { ref = A.this; }
  }
}



More information about the Digitalmars-d mailing list