|
It is possible to distinguish call by name from call by value/result and call by reference without using any global variables inside the procedure body. So, the best solution must not use global variables inside the procedure body, since that would give the false impression that the difference hinges on the use of global variables. The best solution involves only parameter passing and assignments to the parameters. I quote from the problem statement: Hint: you need to pass an array reference as a parameter. Mike O'D. |
to: