having trouble with flet in plot.lisp -- stack overflow
Subject: having trouble with flet in plot.lisp -- stack overflow
From: Raymond Toy
Date: Tue, 08 Nov 2005 08:47:23 -0500
>>>>> "Robert" == Robert Dodier writes:
Robert> On 11/7/05, Raymond Toy wrote:
>> Could it be that f is a special variable?
Robert> cpoly.lisp and ratout.lisp both appear to declare f special ...
Yuck. Thanks to Douglas Crosher, cmucl and scl have unspecial
support. I suspect the same or very similar solution will work for
sbcl. We should ask the clisp people if there's a similar function.
In the mean time, I think I'll look through plot.lisp and change all
uses of f to something else. Or look at cpoly and ratout to see if we
can at least change f to *f* for those files.
I think getting rid of these special variables, or at least making
them use the * convention is an important task that we should try to
do whenever possible. I, for one, get totally confused when a special
variable is used as a parameter to a function.
>> 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.
Robert> (%i3) :lisp (describe 'maxima::f)
Robert> F is an internal symbol in #.
Robert> Dunno what we can conclude from that.
I thought that if f were special, describe would say so. CMUCL
normally says so. (But it didn't on my build because the version I
have has unspecial support for cmucl.)
Thanks for trying this out for me.
Ray