Warning: ObjectScript evaluates operators strictly left to right, without precedence; this may not compute what you expect
In this expression, an operator that usually binds loosely is directly followed by one that
usually binds tightly. Such pairs include + then *, = then + and && then =. IRIS
compiles the expression and computes it strictly left to right, so a + b * c is
(a + b) * c. Add parentheses to say which reading is meant.
IRIS compiles the example.
Class Demo.MixedPrecedence
{
ClassMethod Total(price As %Numeric, quantity As %Integer, shipping As %Numeric) As %Numeric
{
Quit shipping + price * quantity //! A7155
}
}