[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55434] deprecated keyword "static" still rema
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #55434] deprecated keyword "static" still remains in source |
Date: |
Thu, 10 Jan 2019 04:29:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?55434>
Summary: deprecated keyword "static" still remains in source
Project: GNU Octave
Submitted by: None
Submitted on: Thu 10 Jan 2019 09:29:11 AM UTC
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.1
Operating System: Any
_______________________________________________________
Details:
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
address@hidden libinterp/parse-tree/oct-parse.yy
--*- texinfo -*-
address@hidden {} {} static
-This statement has been deprecated in favor of @code{persistent}.
address@hidden
address@hidden deftypefn
switch
@c libinterp/parse-tree/oct-parse.yy
-*- texinfo -*-
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55434>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55434] deprecated keyword "static" still remains in source,
anonymous <=