Functions may leak information about names(!) of localvariables.



On 12/28/06, Richard Fateman <fateman at cs.berkeley.edu> wrote:
> The problem you have encountered is that t is a synonym for the truth value
> true.
>
> If you change t to tt  inside g(s), uniformly, then the answer you get for
> g(t); is 64.
>
> Is this a bug? Perhaps.  Lisp uses the variable "t"  for true, and this is
> how the idea originated. Is this more confusing than useful at this time?
> Probably.
>
> At least in wxmaxima, if you write t[n]:=n^3; it is displayed as
> true[n]:=n^3.

I don't think t is a synonym for true in maxima. This was a bug in
wxmaxima (it is fixed in the latest release).

Andrej