Structs on private section.

Alexey Veselovsky alexey.veselovsky at gmail.com
Sun Nov 27 15:57:10 PST 2011


Hi!

It seems like structs in private section (module or class) remains public:

class A {
private:
	struct B {int b;}
}

void foo() {A.B b; b.b=10;}

this code compiles ok.

WTF?


More information about the Digitalmars-d mailing list