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

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

[Octave-bug-tracker] [bug #36743] Octave:language-extension warning warn


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #36743] Octave:language-extension warning warns about Octave's own files
Date: Wed, 16 Sep 2015 13:03:20 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0

Follow-up Comment #9, bug #36743 (project octave):

The language extension warning could be useful, even if it is not complete and
doesn't catch every possible thing that is different from Matlab.

It is pretty useless, however, if it flags "system" code in Octave as well.

Marking functions as "system" or somehow otherwise exempt from this class of
warnings makes sense to me, it's just a matter of how to do it.

We could introduce some kind of "pragma" comment that would apply to a single
function:


#pragma: warning Octave:language-extension off


so that warnings could be disabled for the given function when it is parsed
and evaluated.

To make this a global thing for a directory (or possibly a directory tree) we
could place pragma directives in a special file that Octave reads when it
parses function files (or adds the directory to the load path).  If we do this
when the directory is added to the load path, then perhaps we could use the
existing PKG_ADD file for this purpose.

Using a per-directory file might be better than maintaining a list separately
(by naming them in some other startup file, for example).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36743>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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