|        | |||||
|  | |||||
| Functions: applying "save" to arguments | |||||
| Prerequisite Concepts | Related Syntax | ||||
Like local variables, save and save-clear cannot be applied to function arguments. The purpose of a save is to create a local shelf, but associate it with a global name, so that all references to that global name actually use the new instantiation. Therefore, the shelf name used in a save or a save-clear declaration must always be a global name.
save or save-clear can be applied to a global shelf name, even if that global shelf was passed as a modifiable or read-only argument to a function. However, the function argument still applies to the shelf as it was before it was saved. This means:
In other words, save and save-clear changes the association of a global shelf name, but not a function argument name.
| Prerequisite Concepts Functions Functions: argument classes | Related Syntax define function global, local save save-clear | 
| ---- |