|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator over transpose operator |
| Date: | Tue, 25 Sep 2018 15:40:44 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #20, bug #54698 (project octave):
With your proposed change the transpose operator and the power operator have
different precedence. Considering the following expression:
a^b'
currently it is evaluated as (a^b)' but with your proposed change it should be
evaluated as a^(b') . Comment 11 has noted the related problem.
Also I think that postfix ++/-- should have the same precedence as call
operator because in the expression a++(x) a postfix operator "++" is followed
by another postfix operator "()" that has lower precedence and it is syntax
error. Is it needed to be discussed in a separate bug ?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54698>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |