[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52016] conversion to short circuit in if, whi
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #52016] conversion to short circuit in if, while but not in until |
Date: |
Thu, 14 Sep 2017 05:33:19 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 |
URL:
<http://savannah.gnu.org/bugs/?52016>
Summary: conversion to short circuit in if, while but not in
until
Project: GNU Octave
Submitted by: ernstreissner
Submitted on: Thu 14 Sep 2017 09:33:18 AM UTC
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name: ernstreissner
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
In the manual page 228 or around, we read:
If the Octave:possible-matlab-short-circuit-operator warning is
enabled, Octave will warn about using the not short circuiting operators &
and | inside if or while conditions.
I feel, one should mention that this warning
is to make clear, that in if and while conditions
& and | behave like && and || and shall thus be replaced by
explictly && and ||.
This is for matlab compatibility.
As matlab does not support until statements,
octave treats & and | in until conditions
regularly without shortcut.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52016>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52016] conversion to short circuit in if, while but not in until,
Ernst Reissner <=
- [Octave-bug-tracker] [bug #52016] conversion to short circuit in if, while but not in until, Ernst Reissner, 2017/09/14
- [Octave-bug-tracker] [bug #52016] conversion to short circuit in if, while but not in until, Rik, 2017/09/14
- [Octave-bug-tracker] [bug #52016] conversion to short circuit in if, while but not in until, John W. Eaton, 2017/09/14
- [Octave-bug-tracker] [bug #52016] '&' or '|' used in until condition should warn about short-circuiting, Rik, 2017/09/14
- [Octave-bug-tracker] [bug #52016] '&' or '|' used in until condition should warn about short-circuiting, Rik, 2017/09/14
- [Octave-bug-tracker] [bug #52016] '&' or '|' used in until condition should warn about short-circuiting, Mike Miller, 2017/09/15
- [Octave-bug-tracker] [bug #52016] '&' or '|' used in until condition should warn about short-circuiting, Rik, 2017/09/15