Assignable primaries
An assignable primary is an identifier followed by accessors.
If there are accessors, the last one must always be an attribute reference
or an (empty) subscription. Assignable expressions are used with
assignments,
augmenting operators,
foreach statements, and
catch statements.
Ampersand (&) modifies the assignment so that the referred value
is assumed to be ref, and the contents
assignment is made into ref, thus changing the value where ref is referring to
(local variable). This is a kind of pointer.
assignable-expr := ["&"] identifier accessor
Add a note
|