On 10/10/2014 3:27 PM, Joseph Rushton Wakeling via Digitalmars-d wrote:
On 10/10/14 19:09, IgorStepanov via Digitalmars-d wrote:
I've created DIP for my pull request.
DIP: http://wiki.dlang.org/DIP66
PR: https://github.com/D-Programming-Language/dmd/pull/3998
Please, comment it.
This may be beyond the scope of the DIP, but is there any intention (or any
need?) to set rules for how alias this should behave in the case of different
protection levels for the base type and the alias?
I like the C++ rule that says that access control is not considered for name
lookup. I know it makes for some annoying results, but the simplicity of the
rule makes it much more understandable.
I ask because there is a known issue related to this:
https://issues.dlang.org/show_bug.cgi?id=10996
... but also because any rules set for this, might in principle affect the
desirable priority rules for multiple alias this too.