-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue 15371 - some traits should bypass the protection #5289
Conversation
|
This could fix my mistake with |
|
This seems like something that requires approval. Also, would this allow someone to call a private function from another module? Ping @WalterBright @andralex for thoughts. |
|
Yes this would allow things that are completly illegal, but this is the point. The idea is to allow this with a kind of caution, e.g use this only if you know what you do because it can break the protection. I'm curious to know if there could be another way to solve the problem exposed in the bugzilla issue (other than mixing a template to get the scope). |
|
Maybe it would make sense to bypass the protection if one is not in |
|
Isn't |
The connection to |
|
You can close this PR, bugzilla issue is closed because of #6078 |
|
See also comments starting here: #7241 (comment) |
The argumentation is in the bug tracker issue, but in short:
See also this issue, it demonstrates why it could be interesting to give super-powers to traits: because the current limitation already affects phobos.