[Maxima] Functions may leak information about names(!) of local variables.

Michel Van den Bergh michel.vandenbergh at uhasselt.be
Thu Dec 28 07:33:11 CST 2006


I really don't see how to do robust programming in maxima.

Consider

g(s):=block([t],local(t), t[4]:subvar(s,4), t[4]);
t[n]:=n^3;
u[n]:=n^4;

g(u);
      256
g(t);
     t_4

What is the correct way of dealing with this? Or should one just say that
arrays are not first class objects and should not be passed around in
this way?
That would be a pity.

Michel



More information about the Maxima mailing list