Warning But global vs. local is not the issue here 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #6 due Monday, 12 November (Mike O'Donnell)
Re: Question Untitled (Kristina Matesa)
Date: 2001, Nov 11
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

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.


Messages

to: "But global vs. local is not the issue here"