[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, a
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse |
Date: |
Fri, 24 Jun 2016 10:34:17 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #11, bug #43098 (project octave):
I couldn't reproduce the failure with the natural syntax of the BIST, so the
patch now uses the natural syntax.
The previous attempt to make the range case match all(r!=0) wouldn't have
worked, so now it just reverts to the old inefficient code for cases that
cross zero.
Finally, the new patch shows the warning each time instead of only the first
time. I still think it is useful to have a "once only" mode for warnings.
For example, if the code that does "if(array)" is third party code, the user
will probably not want to modify it -- especially if it is updated frequently.
Still, it would be better to be part of a framework rather than a kludge for
this particular warning.
(file #37563)
_______________________________________________________
Additional Item Attachment:
File name: bug_43098_warn_if_array.v4.cset Size:11 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43098>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, Lachlan Andrew, 2016/06/11
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/12
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/13
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/22
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, John W. Eaton, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Rik, 2016/06/23
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse,
Lachlan Andrew <=
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Colin Macdonald, 2016/06/24
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Rik, 2016/06/24
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/25
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Rik, 2016/06/29
- [Octave-bug-tracker] [bug #43098] "if (array)" should raise a warning, and give the same result for dense and sparse, Lachlan Andrew, 2016/06/29