intent¶
How a procedure uses a dummy argument, and what role a variable plays.
Declaration¶
Syntax¶
intent = Local | In | Out | InOut | ReturnVar | Unspecified
Values¶
Value |
Meaning |
|---|---|
|
a local variable, not an argument. |
|
|
|
|
|
|
|
the result variable of a function. |
|
a dummy argument with no |
Return values¶
None. An enumeration value is not evaluated.
Description¶
The intent is a contract the call site has to satisfy: an actual argument for
an Out or InOut dummy must be writable, which means a variable expression
or a cast wrapper around one. For In and Unspecified any expression is
allowed.
Local and ReturnVar are not argument intents at all: they identify what
the variable is. Every Variable carries one of
these six values, so the role of a symbol is never inferred from where it
appears.