On Friday, 2 August 2013 at 11:47:46 UTC, bearophile wrote:
JS:

the fact remains that I can't do it in Dlang.

Is tagging the inner class as static helping?

class A {
    static class B { ... }
}

Bye,
bearophile

Just to be clear, marking the inner class as static means that B will not have a pointer to A. It is the same as defining B outside A, the difference being that B is not visible to anything outside the module.

Reply via email to