[Tutor] Functions !

Ignacio Vazquez-Abrams ignacio@openservices.net
Tue, 28 Aug 2001 23:39:00 -0400 (EDT)

On Tue, 28 Aug 2001, Dutch wrote:

> 1.
> I am -guessing- that the part of the program that calls on the function is
> sending a variable to be processed in the function and it is getting
> dumped in c_temp or f_temp. If thats the case, they why is it that the
> original variable is not used, in this case "temp"?

For clarity. 'temp' can still be used, but '[cf]_temp' is clearer.

> 2.
> I'm guessing here too that many parts of a program with all their
> different variables can call the funtion so no one absolute vaiable can be
> used so this "dummy" (c_temp or f_temp) is used and I must therefore be
> careful not to use the same label (variable) anywhere else in my program.

Wrong. The variable only exists within the function.

Ignacio Vazquez-Abrams  <ignacio@openservices.net>