bugGNU Octave - Bugs: bug #61777, var warning on .- operator

 
 

bug #61777: var warning on .- operator

Submitter:  John Donoghue <lostbard>
Submitted:  Sat 08 Jan 2022 07:17:24 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  JohnD Open/Closed:  * Closed
Release:  * 7.0.90 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Jan 2022 10:59:33 AM UTC, comment #2: 

Grafted that change to the stable branch here:
https://hg.savannah.gnu.org/hgweb/octave/rev/9c7561dda313

Markus Mützel <mmuetzel>
Group administrator
Sat 08 Jan 2022 11:30:41 PM UTC, comment #1: 

https://hg.savannah.gnu.org/hgweb/octave/rev/9e0421bd8bad

The above change already fixes the behavior, but it looks like it happened on default rather than stable. Probably needs a merge to resolve it on stable?

Arun Giridhar <arungiridhar>
Group Member
Sat 08 Jan 2022 07:17:24 PM UTC, original submission:  

Im assuming a missed update of sources for a '.-' operator usage:

With fresh install of the 7.0.91:



warning: the '.-' operator was deprecated in version 7 and will not be allowed in a future version of Octave; please use '-' instead; near line 219 of file '/usr/local/share/octave/7.0.91/m/statistics/var.m'
warning: the '.-' operator was deprecated in version 7 and will not be allowed in a future version of Octave; please use '-' instead; near line 219 of file '/usr/local/share/octave/7.0.91/m/statistics/var.m'
warning: called from
    print_usage at line 62 column 18
    var at line 94 column 5

error: Invalid call to var.  Correct usage is:

 -- var (X)
 -- var (X, W)
 -- var (X, W, DIM)
 -- var (X, W, "ALL")


John Donoghue <lostbard>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by lostbard (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-09 mmuetzel StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code