I'm not sure it is a bug since it seems to do what I expected
it to do (it is a consequence of Macsyma generally using
"dynamic scope").
Maybe the question is, what do you really want to do?
One change would be to define f(?funny_name):=?funny_name::1;
to avoid the name coincidence.
Another is to use a macro definition f(x)::= ... with a
suitable right hand side. I'm not sure what exactly that should
be though. The describe(macros) command in xmaxima comes up
blank.
Dan Stanger wrote:
> The following is a problem with both maxima 5.5 and the commercial
> macsyma. What would it
> take to fix it?
> Dan Stanger
> (C1) f(x):=x::1;
> (D1) f(x) := x :: 1
> (C2) f(x);
> (D2) 1
> (C3) x;
> (D3) x
> x is not assigned to.
> (C4) y;
> (D4) y
> (C5) f(y);
> (D5) 1
> (C6) y;
> (D6) 1
> However y is.
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>