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

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

[Octave-bug-tracker] [bug #53587] Disabling an invalid warning ID should


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #53587] Disabling an invalid warning ID should give an error
Date: Mon, 9 Apr 2018 04:05:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Update of bug #53587 (project octave):

                  Status:               Need Info => Confirmed              

    _______________________________________________________

Follow-up Comment #3:

Agreed, a colon is mandatory in Matlab, and Octave also uses that as one of
the requirements to determine if the first argument is a warning ID or just a
warning string:

libinterp/corefcn/error.cc:1087

      // For compatibility with Matlab, an identifier must contain ':',
      // but not at the beginning or the end, and it must not contain '%'
      // (even if it is not a valid conversion operator) or whitespace.


So that logic might as well be applied to the warning ID passed to warning
on/off/query/error.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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