Submitted by: zristic
Severity: Moderate
Status: fixed in version 5.0
Description:
If one function that returns value is called more than once within a single expression, each new call will overwrite the result of the previous one. For example:
Code: Select all
i := My_Function1(2) + My_Function1(5);
This does not apply to different functions, e.g.
Code: Select all
i := My_Function1(2) + My_Function2(102) + My_Function3(23) + ....;
Workaround:
Use one call per expression:
Code: Select all
i := My_Function1(2);
i := i + My_Function1(5);
...