-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Fix imports #734
Fix imports #734
Conversation
compiler segfaults if source file can't be read
Issue 7578 - ICE on indexing result of vararg opDispatch
- restrict visibility of module level symbols to given access rights - restrict access rights when searching across imported modules
- find private symbols - take first symbol for ambiguous proposals - don't report errors for Scope::search_correct
- print protection and kind - print fully qualified name
- apply protection to aliases added by imports
- still unfixed
This has a few subtleties to it. For example, say we have a private type in a module and a public function that returns a value of that type. Should the function be callable by client code, or not? |
@andralex In my opinion, no. While you can do something with it (pass it around using (FWIW C# does not allow exposing something of a type that's less visible than the thing being exposed.) |
I don't think we have much room for game changing subtleties in DMDv2. |
Out of a guts feeling I think getting overly restrictive does more harm than good. |
Also D offers fine grained control for protection. private struct Foo
{
public void bar() {}
} vs. public struct Foo
{
private void bar() {}
} |
status of this? |
I'll have to write a DIP for #739 and do some lobbying for it first. |
depends on #739