Access operators
Path resolution
::
is a binary operator.
Accepts
- Namespace identifier (module, structure, enumeration)
- Item identifier (module, type, variable, constant etc.)
Returns the second operand.
Array indexing
[]
is a binary operator.
Accepts
- Array expression
- Integer or range expression
Returns an array element (if the 2nd operand is an integer) or a sub-array (if the 2nd operand is a range).
Field access
.
is a binary operator.
Accepts
- Tuple or structure/contract expression
- Tuple index or structure/contract member name
Returns a tuple element or structure/contract member.