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

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

[Octave-bug-tracker] [bug #62183] std gives warning about deprecated ".-


From: Hartmut
Subject: [Octave-bug-tracker] [bug #62183] std gives warning about deprecated ".-" on first use (Octave 7.0.90)
Date: Mon, 14 Mar 2022 12:55:25 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62183>

                 Summary: std gives warning about deprecated ".-" on first use
(Octave 7.0.90)
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: 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: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.0.90
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62183>

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




reply via email to

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