Nested Structs

d coder dlang.coder at gmail.com
Mon Dec 27 05:54:37 PST 2010


Greetings All

I have a situation where I have a struct nested inside a class. I
would like to make the enclosing class' members visible inside the
nested struct's constructor. I see that such preposition is feasible
for nested classes, but not for nested structs. Why so?

Are there some alternative constructs which could give me this
behavior for nested constructs?

Regards
- Cherry


More information about the Digitalmars-d-learn mailing list