All functions, including local functions, have their own workspaces that are separate from the base
workspace. Local functions cannot access variables used by other functions unless you pass them as
arguments. In contrast, nested functions (functions completely contained within another function)
can access variables used by the functions that contain them.
See Also
localfunctions
More About
•
“Nested Functions” on page 20-27
•
“Function Precedence Order” on page 20-37
•
“Types of Functions” on page 20-17
20 Function Basics
20-26
workspace. Local functions cannot access variables used by other functions unless you pass them as
arguments. In contrast, nested functions (functions completely contained within another function)
can access variables used by the functions that contain them.
See Also
localfunctions
More About
•
“Nested Functions” on page 20-27
•
“Function Precedence Order” on page 20-37
•
“Types of Functions” on page 20-17
20 Function Basics
20-26
