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: Mike Miller
Subject: [Octave-bug-tracker] [bug #54698] Precedence of call/indexing operator over transpose operator
Date: Tue, 25 Sep 2018 16:03:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

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

jwe - I haven't looked at the parser yet, I've only been trying to propose a
simple change to the docs to match how Octave actually works. Maybe the docs
are fine the way they are now, but I think I agree with the OP that somewhere
it should be explained that

A.'(m:n)

is evaluated as

(A.')(m:n)

even though the parentheses operator has higher precedence. I don't want to
change anything in the implementation of the parser. I just think there should
be an explanation as to why that is.

OP - For numeric types, the expressions (A^B)' and A^(B') are equivalent, so I
considered it a non-problem. But yes, for user-defined types that does change
the order of operation. Withdrawn.

    _______________________________________________________

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]