Question: Actual parameters evaluation

Hi

I have a "trivial " question about the actual parameters evaluation when I call a procedure.

The "introductory programming guide" says:

"Note: Maple evaluates the actual parameters before they are substituted for the formal parameters ... " (Maple 12 IPG, pag 195)

I don't understand if this is a full evaluation, a one-level evaluation, or what else.

If I try something like this, in a worksheet page (all the variables are global)

f:= x->x^2;

a:=b;
b:=c;

then

 

f(a);
c^2

so I'd think that the actual parameter is fully evaluated; but, on the other hand if I write:

f('a');
a^2

so in this second case the parameter seems to be evaluated only one-level.

 

What all this means??

Thank you for any remark

S.V.

Please Wait...