bugGNU Octave - Bugs: bug #62183, std gives warning about deprecated...

 
 

bug #62183: std gives warning about deprecated ".-" on first use (Octave 7.0.90)

Submitter:  Hartmut <hardy>
Submitted:  Mon 14 Mar 2022 04:55:23 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.0.90 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Mar 2022 06:17:09 PM UTC, comment #1: 

That's already been reported and fixed in bug #60882.

Closing as duplicate.

Markus Mützel <mmuetzel>
Group administrator
Mon 14 Mar 2022 04:55:23 PM UTC, original submission:  

Here is a behavior that I observed with the current release candidate Octave 7.0.90. I observed it under Windows OS (official exe-installer) but I suspect that it will be there under all OS'es.

When calling std() the first time in an Octave session, it throws a warning message to the Octave console about the deprecated use of ".-" in core Octaves's var.m. Here is a demo code to reproduce it:


>> std([1, 2, 3])
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 'C:\Octave\Octave-7.0.90\mingw64\share\octave\7.0.90\m\statistics\var.m'
warning: called from
    std at line 92 column 10

ans = 1
>>


Maybe this has already been fixed in the core Octave repo, I have not checked this.

If not, it might be a good idea to search for more occurances of the deprecated ".-" (and other) operators in core Octave's code base and simply change them to "-" in order to avoid this confusing warning message.

Hartmut <hardy>

 

(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 hardy (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-03-14 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code