[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51999] missing: do_braindead_shortcircuit_eva
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #51999] missing: do_braindead_shortcircuit_evaluation |
Date: |
Wed, 13 Sep 2017 21:30:38 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #3, bug #51999 (project octave):
Still in the manual Section 8.5.2 I read:
MATLAB has special behavior that allows the operators ‘&’ and ‘|’ to
short-circuit when used in the truth expression for if and while statements.
Octave also behaves the same way by default, though the use of the ‘&’ and
‘|’ operators in this way is strongly discouraged. Instead, you should use
the ‘&&’ and ‘||’ operators that always have short-circuit behavior.
I think, 'by default' is deprecated: this is always the case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51999>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/