I have the follwoing convention in pseudocode, from the Introduction to Algorithims textbook:
- Parameters are passed to a procedure by value: the called procedure receives its own copy of the parameters, and if it assigns a value to a parameter, the change is not seen by the calling procedure. When objects are passed, the pointer to the data representing the object is copied, but the object’s fields are not. For example, if x is a parameter of a called procedure, the assignment x ← y within the called procedure is not visible to the calling procedure. The assignment f [x] ← 3, however, is visible.
What is a calling procedure and what does it mean to be visible or not to it?
Could someone explain to me what the quote wants to say?