Tag: Object Path command
A program is compiled using the object channel command:
Outside the object, the rear channel Directive 1 {maifgn ()()
{
[Dgdfg]-> [$ jjjj = 0];
[Jjjj]-> [jjjj = jjjjj + 1];
<[Jjjj = 5]> <-> [dgdfg]-> [subfunction 2 (0) (TTT)];
[TTT] [jjjj = 5]-> [gdfg2 = TTT, end, display result];
}
Subfunction 2 (yy) (TTT)
{
[YY]-> [yy = YY + 1];
[Yy = 3]-> [Display Results] <YY>;
}
} The result is as follows:
Outside the object, the rear channel Directive 1 {maifgn ()()
{
[Dgdfg]-> [$ jjjj = 0];
[Jjjj]-> [jjjj = jjjjj + 1];
<[Jjjj = 5]> <-> [dgdfg]-> [subfunction 2 (0) (TTT)];
[TTT] [jjjj = 5]-> [gdfg2 = TTT, end, display result];
}
Subfunction 2 (yy) (TTT)
{
[YY]-> [yy = YY + 1];
[Yy = 8]-> [Display Results] <YY>;
}
} The result is as follows:
The differences between the two programs are as follows:
In subfunction 2 (yy) (TTT), The YY Value of "[yy = 8]-> [display result] <YY>" is 3 and 8.
When it is 3: subfunction 2 outputs the return value first;
When the value is 8, the OSS command has paused the running of sub-function 2, and sub-function 2 is sleeping.
Instance of the object bypass Instruction Program