Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Primaries > Assignable primaries

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 
See also  | Assignments  | Augmenting operators  | Catch  | Foreach  | Tags  | <foreach>  | Grammar
Contributes notes:
Add a note
What's new | Anvil