Let's try to guess the return value of method t1().Is that supposed to be hard? I immediately visually determined the result 20.
To be honest I don't really understand the point which the author wanted to convey. Maybe it's the lack of English.
In this case, the t3 method code is equivalent to the following code:ClassMethod t3(ByRef pA, ByRef pB) [ ProcedureBlock = 1 ]
{
set pA=4, pB=5
set x=$increment(pA)*$increment(pB)
}
PS: by the way, absolutely nothing will change fundamentally if you replace "return" with "quit" (and "ByRef" with "Output").- Log in to post comments