having trouble with flet in plot.lisp -- stack overflow



On 11/7/05, Raymond Toy  wrote:

> Could it be that f is a special variable?

cpoly.lisp and ratout.lisp both appear to declare f special ...

> Anyway, if I change the parameter f in adaptive-plot from f to
> plot-fun, and recompile the world from scratch with clisp, the plot
> works just fine.  If I recompile the world from scratch without the
> change, clisp gets a stack overflow.
>
> And it's important to recompile from scratch.  Recompiling after just
> changing plot.lisp doesn't tickle this bug.

I changed f --> plot-fun and did a clean recompile,
and now plot2d works OK for both SBCL and Clisp. Hurray!

> In SBCL, can you type (describe 'maxima::f)?  Does it say it's a
> special variable?  If not, then I don't know what the issue is.

(%i3) :lisp (describe 'maxima::f)

F is an internal symbol in #.

Dunno what we can conclude from that.

Robert