Visibility
There are a few modifiers to control the visibility of features and the types they define:
- private (default)
- private:module
- private:public
- module
- module:public
- public
| visibility | description |
|---|---|
| private | file-wide visibility |
| module | module-wide visibility |
| public | global-wide visibility |
By default features and types are only visible in the current file.
The part after the colon specifies the types visibility. E.g.: private:module means that the features may only be called from inside of the file but the type it is defining is visible everywhere in the module.