octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]