. (full stop)
Gives access to the members of a structure.
Sis a structure
xis a symbol, the name of a member of
The returned value is an lvalue.
S is a structure and
x the name of a member of
S (as a symbol, not as a string), then
S.x returns the value of this member in
S.x is an lvalue if
S is; if so,
S.x may be assigned to.
. operator is implemented by the internal
FCN_AccessMember function. This function is not exported with a name. Therefore, it can only be used via this operator.
Albus ≔ struct("FirstName": "Albus", "LastName": "Dumbledore", "Age": 105, "Role": "Headmaster")
FirstName: Albus LastName: Dumbledore Age: 105 Role: Headmaster
Albus.Age ≔ 106
FirstName: Albus LastName: Dumbledore Age: 106 Role: Headmaster
now().date.year ≔ 1995
Left side cannot be assigned to.
Call stack: assign