bugGNU Octave - Bugs: bug #55434, deprecated keyword...

 
 

bug #55434: deprecated keyword "static" still remains in source

Submitter:  None
Submitted:  Thu 10 Jan 2019 09:29:11 AM UTC
   
 
Category:  Documentation Severity:  2 - Minor
Priority:  3 - Low Item Group:  Documentation
Status:  Fixed Assigned to:  siko1056
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Jan 2019 12:42:36 PM UTC, comment #1: 

Thank you for your detailed bug report.

In Octave each deprecation lasts for about two major releases.  In this case it was 4.0 and 4.2.  Now that we are already at 4.4 it is save to apply your patch suggestion and to remove this deprecation note.

https://hg.savannah.gnu.org/hgweb/octave/rev/2538ed43aa25

This will be part of Octave 5.0 which will be soon released.

Kai Torben Ohlhus <siko1056>
Group Member
Thu 10 Jan 2019 09:29:11 AM UTC, original submission:  

The keyword "static" has been removed from Octave 4.0:

$  grep -w -C3 static /usr/share/octave/4.4.1/etc/NEWS
 ** The following keywords were deprecated in Octave 3.8 and have been
    removed from Octave 4.0

      static


Now "static" is not a keyword:

octave:1>  doc keyword

octave:2>  which static
octave:3>  type static
error: type: 'static' undefined
octave:3>  iskeyword static
ans = 0
octave:4>  iskeyword
ans =
{
  [1,1] = __FILE__
  [2,1] = __LINE__
  [3,1] = break
  [4,1] = case
  [5,1] = catch
  [6,1] = classdef
  [7,1] = continue
  [8,1] = do
  [9,1] = else
  [10,1] = elseif
  [11,1] = end
  [12,1] = end_try_catch
  [13,1] = end_unwind_protect
  [14,1] = endclassdef
  [15,1] = endenumeration
  [16,1] = endevents
  [17,1] = endfor
  [18,1] = endfunction
  [19,1] = endif
  [20,1] = endmethods
  [21,1] = endparfor
  [22,1] = endproperties
  [23,1] = endswitch
  [24,1] = endwhile
  [25,1] = enumeration
  [26,1] = events
  [27,1] = for
  [28,1] = function
  [29,1] = global
  [30,1] = if
  [31,1] = methods
  [32,1] = otherwise
  [33,1] = parfor
  [34,1] = persistent
  [35,1] = properties
  [36,1] = return
  [37,1] = switch
  [38,1] = try
  [39,1] = until
  [40,1] = unwind_protect
  [41,1] = unwind_protect_cleanup
  [42,1] = while
}


But it still remains somewhere:

octave:55>  lookfor static
static              This statement has been deprecated in favor of ‘persisten
                    t’.
octave:56>  help static

 -- static
     This statement has been deprecated in favor of 'persistent'.

     See also: persistent.




Here is a possible patch:

--- a/libinterp/op-kw-docs
+++ b/libinterp/op-kw-docs
@@ -708,13 +708,6 @@
 Return from a function.
 @seealso{function}
 @end deftypefn
-static
-@c libinterp/parse-tree/oct-parse.yy
--*- texinfo -*-
-@deftypefn {} {} static
-This statement has been deprecated in favor of @code{persistent}.
-@seealso{persistent}
-@end deftypefn
 switch
 @c libinterp/parse-tree/oct-parse.yy
 -*- texinfo -*-


Anonymous

 

(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 siko1056 (Posted a comment)
  • -email is unavailable- added by None (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-10 siko1056 Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        StatusNone Fixed
        Assigned toNone siko1056
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code