Next: Well-formedness – Injection, Previous: Well-formedness – Reply, Up: Well-formedness [Contents][Index]
Both action
s and function call
s can be typed, and as such
are considered to be expressions. They can only be called are from the
imperative statement. The reason is that action
s and function
calls
(at least the functions that contain action
s) cause
a side effect.
This means that action
s or function call
s cannot be used
to initialize the value of a global variable in a behavior, neither
can it be used in a guard
statement.