[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61201] A "Matlab-style short-circuit ... oper
From: |
Doug Strain |
Subject: |
[Octave-bug-tracker] [bug #61201] A "Matlab-style short-circuit ... operator &" warning message points to wrong statement |
Date: |
Tue, 21 Sep 2021 17:10:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Waterfox/56.6.2021.08.1 |
URL:
<https://savannah.gnu.org/bugs/?61201>
Summary: A "Matlab-style short-circuit ... operator &"
warning message points to wrong statement
Project: GNU Octave
Submitted by: saintrain
Submitted on: Tue 21 Sep 2021 09:10:10 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Doug Strain
Originator Email:
Open/Closed: Open
Release: 6.3.0
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi!
Flatpak 6.3.0 on linux mint.
I made this ... ridiculous thing fuh yoo:
debug_on_error(1)
debug_on_warning(1)
NOVER = NLIM = 10000;
nsucc = -666; nchg=0;
j = 0; trip = 0;
while((j < 100) & nsucc);
j++;
if(nchg < nsucc) disp("Huh 01X???") endif
nsucc = 0;
k = 0;
while((k < NOVER) & (nsucc < NLIM));
k = k + 1;
if(nchg < nsucc) disp("Huh 1???") endif
if(rand < .001) nsucc++; nchg++; endif
if(nchg < nsucc) disp("Huh 5??") endif
endwhile
if(nchg < nsucc) disp("Huh X1???") endif
endwhile
[j k nsucc nchg]
Running it will (eventually) trigger a
"Matlab-style short-circuit operation performed for operator &"
warning, but pointing to line 19, instead of either of the while(s)
Enjoy!
Doug
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61201>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61201] A "Matlab-style short-circuit ... operator &" warning message points to wrong statement,
Doug Strain <=