On 2013-02-14, Wilhelm Haager <wilhelm.haager at htlstp.ac.at> wrote:
> I have declared a function as a prefix-operator, e.g.:
> "->"(x):=display(x);
> prefix("->");
>
> Output of the function definition via
> stringout("test.mac",functions)
> writes the following line into the file test.mac:
> -> x:=display(x);
> Obviously the operator-"ness" of a function is
> not being saved with stringout.
There isn't any way to save the prefix declaration (or infix, etc) in
either Maxima or Lisp output ('save' doesn't save it either). I think
that's a bug.
It would be relatively simple to fix it -- just need to save the
symbol properties (in Lisp output) or equivalent declarations (in Maxima
output).
best
Robert Dodier