Rindirect: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
sierraw>Andrew Branscom m 1 revision imported |
m 2 revisions imported |
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 15:58, 16 February 2025
The rindirect command assigns the indirect value of one variable to another.
Syntax
rindirect(var vA, var vB);
vA = *vB;
Remarks
This command is referred to as 'right indirection". The value of variable vA is set to the value of vC (where C is the value of vB).
Possible Errors
None.
Example
Code:
v51 = 75;
v75 = 99;
v99 = 10;
rindirect(v50, v51); [ now v50 = 99
v50 = *v75; [ now v50 = 10Technical Information
| Required Interpreter Version: | Available in all AGI versions. |
| Byte-Code Value: | 10 (0x0A hex) |