public alias to private template implementation

Dicebot public at dicebot.lv
Tue Sep 17 04:23:22 PDT 2013


That is actually very weird because you can override protection 
attribute with alias for an aggregate:

// b.d
private struct A_
{
}

public alias A = A_;

// a.d
void main() { A a; } // fine!

That inconsistency feels plain wrong. Worth enhancement request 
at least.


More information about the Digitalmars-d-learn mailing list