[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: |
Thu, 23 Jun 2016 06:14:44 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #8, bug #43098 (project octave):
Ah yes. Reading the original bug report. That would help...
I've added some tests for pure-imaginary cases, returning Octave's actual
behaviour. I don't know if it is documented, but it seems reasonable
behaviour. However, I'm happy to change it if someone with more authority
says to.
The funny format is valid ("warning" is a function that returns a value). The
syntax you suggested works fine for "test errwarn.cc-tst" from within Octave,
but fails (reports no error) for "make check".
I've also fixed up octave_value::is_equal() to call all() explicitly so that
the warning isn't thrown by, for example, switch statements.
_______________________________________________________
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 <=
- [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, 2016/06/24
- [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