|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator over transpose operator |
Date: | Mon, 24 Sep 2018 01:10:27 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #13, bug #54698 (project octave): I think here is my final suggestion. Three new operators will be introduced in the documentation: {t/c...}() {t/c...}{} {t/c...}. Where {t/c...} means consecutive number of transpose/ctranspose operators, and those three operators take the same level of precedence as of the call operator. For example in the expression: A'.'.'(X) the consecutive number of transpose/ctranspose operators followed by a call operator are regarded as one operator and it behaves as : temp = A'; temp = temp.'; temp = temp.'; temp(X) Also as a bug is reported in comment8 <https://savannah.gnu.org/bugs/index.php?54698#comment8>, I think the postfix increment/decrement operators should have the same level of precedence as of the call operator. Therefor the table of precedence will be changed to : ‘()’ ‘{}’ ‘.’ ‘{t/c...}()’ ‘{t/c...}{}’ ‘{t/c...}.’ ‘++’ ‘--’ ‘'’ ‘.'’ ‘^’ ‘**’ ‘.^’ ‘.**’ Thanks to all. _______________________________________________________ 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] |