Static Access
The static access postfix operation accesses a named symbol within a namespace, or a variant within an enumeration.
Process
At compile time:
- the operand is resolved;
- the provided identifier is resolved as a member of the operand's namespace, or as a variant of the operand's enumeration; and
- the result is the resolved member.
Assertions
- The operand is a value of the
namespacetype, or a value of thetypetype which denotes an enumeration type. - The provided identifier matches a member of that namespace, or a variant of that enumeration.
Syntax
static_access_operation = colon_colon, identifier ;