On Thu, 2007-11-01 at 22:31 -0700, Robert Dodier wrote:
> Try (MEVAL `(($GNUPLOT_COLOR) ,C)) instead, where C is a variable
> that has the color index.
Yes, that works.
> Or you can define gnuplot_color as a Maxima
> function to being with, via (MEVAL '(($DEFINE) (($GNUPLOT_COLOR) C) ...)).
I get the following error:
*** - EVAL: variable C has no value
and I cannot see any other program in src/ that uses a similar
definition to use as an example.
> There seems to be some inconsistency here -- map and apply
> (which call MAPPLY1) don't have the same effect as evaluating
> a function call in the interpreter. What I mean is that
> map(gnuplot_color, [2]) and apply(gnuplot_color, [2]) yield
> something different than gnuplot_color(2). It seems like they
> should all invoke the same function definition.
That seems a bug to me; and it might be related to the bug in mfuncall
that doesn't look for the Maxima definition before using the Lisp
definition.
Regards,
Jaime