Skip to content
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

Add language support for specifying pub(...) scope #248

Closed
Tracked by #203
Wodann opened this issue Jul 25, 2020 · 1 comment · Fixed by #283
Closed
Tracked by #203

Add language support for specifying pub(...) scope #248

Wodann opened this issue Jul 25, 2020 · 1 comment · Fixed by #283
Assignees
Labels
exp: intermediate Achievable by experienced contributors, or with some guidance pri: intermediate An issue resulting in non-critical functionality loss and no significant effect on usability type: feat New feature or request
Milestone

Comments

@Wodann
Copy link
Collaborator

Wodann commented Jul 25, 2020

By default, a type or function defined in a module is not accessible outside of its file and sub-modules. You can expand accessibility in three ways:

  • pub: accessible within the package and externally (incl. marshalling to the host language)
  • pub(package): accessible within the package
  • pub(super): accessible within parent module and its sub-modules

For an example, see #249.

@Wodann Wodann added type: feat New feature or request pri: intermediate An issue resulting in non-critical functionality loss and no significant effect on usability exp: intermediate Achievable by experienced contributors, or with some guidance labels Jul 25, 2020
@Wodann Wodann added this to the Mun v0.3.0 milestone Jul 25, 2020
@baszalmstra baszalmstra self-assigned this Sep 5, 2020
@baszalmstra
Copy link
Collaborator

Im working on this! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp: intermediate Achievable by experienced contributors, or with some guidance pri: intermediate An issue resulting in non-critical functionality loss and no significant effect on usability type: feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants