Language Reference - Textual Language - Call Parameters


The syntax for the call parameters is the same as the action language but with assignments only and with other prefixes. Also, the assignment targets are restricted to the called procedure and the assignment sources must be outside the procedure.

Call-by-value

  V <parameter> = <expression>;

Call-by-reference

  R <parameter> = <referencedVariable>;

Examples

  V Y1 = Y2;

The variable Y1 in the procedure will be assigned the value of the variable Y2 when the procedure is called.

  R Y3 = Y4;

When the procedure is called, a reference is set up from the variable Y3 in the procedure to the variable Y4. All usage of Y3 will be redirected to Y4, i.e. reading Y3 will read Y4 and writing to Y3 will write to Y4.