Verse Library verse

09 Access Of Definitions In A Module

Compares default private scoping against explicit public modifiers for module variables and classes.

extracted-snippets/documentation/en-us/uefn/modules-and-paths-in-verse/09-access-of-definitions-in-a-module.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/modules-and-paths-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/modules-and-paths-in-verse.md
# Section:    Access of Definitions in a Module
# This module and its members are not accessible from other Verse Files.
private_module := module:
SecretInt:int = 1
...
# But this module, its submodule, and its members are.
public_module<public> := module:
public_submodule<public> := module:
PublicInt<public>:int = 1
...

Comments

    Sign in to vote, comment, or suggest an edit. Sign in