| 1 |
/* |
| 2 |
* test 1 - modify external function twice; base function is itself modified |
| 3 |
*/ |
| 4 |
modify func(x) |
| 5 |
{ |
| 6 |
"this is the first external modified func(<<x>>)\n"; |
| 7 |
replaced(x + '[2]'); |
| 8 |
} |
| 9 |
|
| 10 |
modify func(x) |
| 11 |
{ |
| 12 |
"this is the second external modified func(<<x>>)\n"; |
| 13 |
replaced(x + '[3]'); |
| 14 |
} |
| 15 |
|
| 16 |
/* |
| 17 |
* test 2 - modify external function once; base function is not modified |
| 18 |
*/ |
| 19 |
modify g(x) |
| 20 |
{ |
| 21 |
"this is the external g(<<x>>)\n"; |
| 22 |
replaced(x * 2); |
| 23 |
} |
| 24 |
|
| 25 |
/* |
| 26 |
* test 3 - modify external function once; base function is itself modified |
| 27 |
*/ |
| 28 |
modify h(x) |
| 29 |
{ |
| 30 |
"this is the external h(<<x>>)\n"; |
| 31 |
return replaced(x * 2); |
| 32 |
} |
| 33 |
|