Simplification triggers BUILDQ misbehavior in 5.9.1
Subject: Simplification triggers BUILDQ misbehavior in 5.9.1
From: Wolfgang Jenkner
Date: Fri, 10 Dec 2004 06:23:51 +0100
Albert Reiner <areiner@tph.tuwien.ac.at> writes:
> I have a problem with Maxima stemming from some simplification
> triggered by the call to MEVAL in MBUILDQ.
[...]
> | (%i1) buildq([foo: sin(bar+baz)], 1);
> |
> | Maxima encountered a Lisp error:
> |
> | Type-error in KERNEL::OBJECT-NOT-LIST-ERROR-HANDLER: MLIST is not of type LIST
> A simple but not very satisfactory work around is to make sure that
> SIMP is FALSE:
The reason is that MBUILDQ binds VARLIST, which elsewhere is declaimed
special for the sake of the rational functions module, and so VARLIST
has dynamical scope. In your case the call to MEVAL involves
functions from said module, which see this clobbered VARLIST.
Clearly, VARLIST should have lexical scope in MBUILDQ, so renaming it
here seems an appropriate fix.
Wolfgang