73
edits
Changes
→Argument Intents
The prime allows the user to do the overload function and overload operators.
=== Argument Intents ===
Normal (default) intent means that a formal argument cannot be modified in the body of a procedure. *To allow changing the formal (but not the actual), use the in intent*The inout intent will write back the final value of a formal parameter when the procedure exits.*Similar to the inout intent, the ref intent causes the value of the actual to change depending on the function. However, while the inout copies the argument in upon entering the function and copies the new value out upon exiting, using a ref intent causes any updates to the formal to immediately affect the call site.*The out intent causes the actual argument to be ignored when the procedure starts. The actual is assigned the value of the corresponding formal when the routine exits.
= Reference =