Sent: Sunday, July 23, 2017 7:16 PM
We can argue about whether Maxima should allow operator characters to
be declared alphabetic, but for the sake of consistency it should be
Thanks for your investigations on this.
There seems to be no problem with declaring "+" or "-" alphabetic:
a+ : 1;
a+ + 2; -> 3
a+ - 2; -> -1
As you can see from my following mail, the "-" as alphabetic is quite convenient if you want to access lisp-functions
directly from maxima with ?<lisp-function>, since "-" is "alphabetic" in lisp.
anyway it is already possible -- just double the character and GETOPR
won't notice it, e.g.: declare("++", alphabetic);
This is only a workaround, no solution. If the manual says, we can use a string (any string) as argument to declare,
then I think it should work for all strings, including the single-character string. It will not be such an exceptional
case that someone tries to make a single character alphabetic.