static this constructor
Closed this issue · 6 comments
p0nce commented
https://github.com/burner/logger/blob/master/std/logger.d#L771
Currently DMD forces us to insert a missing super call, which doesn't make sense for static this. It seems DMD think of it as a regular constructor.
I think this static this() module constructor should go out of this class. Being in the same module it will access private members likewise.
burner commented
Yeah this is really not nice. I'm not sure if moving it out will make it any prettier or more corrent.
p0nce commented
Regardless, I think DMD complaint about super() is a compiler bug.
burner commented
I agree. Do you know if there is bugzilla entry for this.
p0nce commented
Dunno. When in doubt, better file it.
burner commented
just for ref
https://issues.dlang.org/show_bug.cgi?id=12737