octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator o


From: anonymous
Subject: [Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator over transpose operator
Date: Mon, 24 Sep 2018 04:10:44 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #15, bug #54698 (project octave):

Having a look at comment2
<https://savannah.gnu.org/bugs/index.php?54698#comment2> and considering the
following example:


A'(X)


Here A is followed by two postfix operators: ' and () .
Now we should refer to the table of precedence to know which one should be
applied first.
The table of precedence says that () has higher precedence so () is applied
first and then ' is applied to the result. 
According to the current table of precedence it should behave as:


temp = A(X);
temp'


But currently it doesn't take into account precedence of operators and behaves
as:


temp = A';
temp(X)


If anything is ambiguous I can provide more clarifications.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54698>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]