octave-maintainers
[Top][All Lists]
Advanced

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

Obsolete parser tokens?


From: John W. Eaton
Subject: Obsolete parser tokens?
Date: Mon, 30 Jan 2012 16:57:14 -0500

On 28-Jan-2012, Rik wrote:

| It seems like the keywords 'static', 'get', and 'set' could possibly be
| removed from the parser.  According to Mercurial, it appears 'static' was
| obsoleted by 'persistent' on 11/12/2002.  9 years would appear to be enough
| time to get rid of any references in outstanding code.    'get' and 'set'
| seem not to be used as keywords.  Rather, the set() and get() functions in
| src/graphics.cc are what Octave uses when it encounters these words.

I would not object to removing it "static" as a reserved keyword, but
I checked, and there are some .m files in Octave Forge that are still
using it.  So before removing it completely, we should probably warn
that it is deprecated for a few releases first.

Although set and get are normally function names, they are also
recognized specially for some kind of classdef syntax.  They are not
keywords in Matlab though, so we could probably also fix Octave to
handle this syntax without requiring actual reserved keywords.

jwe


reply via email to

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