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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54531] zscore: opt argument wronly checked


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #54531] zscore: opt argument wronly checked
Date: Fri, 17 Aug 2018 19:11:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <http://savannah.gnu.org/bugs/?54531>

                 Summary: zscore: opt argument wronly checked
                 Project: GNU Octave
            Submitted by: juanpi
            Submitted on: Fri 17 Aug 2018 11:11:15 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: juanpi
         Originator Name: juanpi
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

After the change in behavior of isscalar zscore is failing with empty OPT
argument, MCV:

++
zscore (rand (10,1), [], 1)
error: zscore: OPT must be empty, 0, or 1
error: called from
    zscore at line 60 column 7
--

One just needs to copy the check on opt from std.m, however ...
I know that it is better to fail as soon as possible, but zscore just passes
the OPT argument to std doing nothing with it, shouldn't std take care of OPT
then?
This way we do not have to maintain two checks on OPT, one of them redundant.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54531>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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