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

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

[Octave-bug-tracker] [bug #54465] Short Circuit Operators not working wi


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #54465] Short Circuit Operators not working with negation operator
Date: Wed, 8 Aug 2018 15:20:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #2, bug #54465 (project octave):

This problem appears to be some kind of incorrect handling of precedence.  The
evaluator is evaluating the "b == 2" expression first.

In any case, I recommend using || and && if you want short-circuit
evaluation.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54465>

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




reply via email to

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