|
| From: | Colin Macdonald |
| 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 04:42:53 +0000 (UTC) |
| User-agent: | Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #6, bug #43098 (project octave):
Those look good to me.
Is this syntax correct, specifically the "+"?
%!error (warning ("error", "Octave:array-as-logical") + ([1 1] || 0));
I expected something like:
%!error <boolean value implies all>
%! warning ("error", "Octave:array-as-logical")
%! q = ([1 1] || 0);
My original comment mentions some cases like "if([1i 2i])". Do you think we
should file a separate issue for those or add tests here?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43098>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |