November 15, 2004 Auto generated ctor can be made private | ||||
---|---|---|---|---|
| ||||
shinichiro.h posted this on D.gnu. With the changes in 0.106, it also affects DMD. Module A: module a; class A { this() { } } class B : A { private: } Module B: import a; void x() { new B; } Compiling module B yields: b.d:2: class a.B member this is not accessible David |
Copyright © 1999-2021 by the D Language Foundation