Subject: Increasing the rbp value of the "+" operator
From: Dieter Kaiser
Date: Tue, 16 Feb 2010 00:17:21 +0100
We have the bug report ID: 910270 "1/+3*x parses as 1/(+3*x)".
I have suggested to increase the right binding power of the "+" operator
to a value 134. That is the value of the right binding power of the "-"
operator.
With this change, the operator "+" works as a prefix operator like the
"-" operator. We get the following results for the examples in the bug
report:
(%i1) 1/+3*x;
(%o1) x/3
(%i2) 1/+x/3;
(%o2) 1/(3*x)
(%i3) a^+b*x;
(%o3) a^b*x
The testsuite and the share_testsuite have no problems.
Is there a problem I have not seen? Is it desirable to have "+" operator
which can be used as a prefix operator too?
Dieter Kaiser