EGL Reference Guide for iSeries
When you declare a variable in a function part, the variable is available
only in the function. If Function01 declares Var01 and invokes
Function02, for example, Function01 can reference the variable but Function02
cannot.
Function variables are of two kinds:
- Function parameters refer to memory that initially contains
data received from an invoking function. At run time, if the invoked
function changes data that was passed by way of a variable, the storage area
available to the invoker is changed, too.
- Other function variables and function constants
allocate local memory and refer to that memory.
For details, see Function invocations.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.