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

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

[Octave-bug-tracker] [bug #58296] Improve description of warning state


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #58296] Improve description of warning state
Date: Mon, 4 May 2020 15:38:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36

Follow-up Comment #6, bug #58296 (project octave):

> throw a warning when one tries to set a warning id that does not pre-exist

This seems like a nice idea, but is unenforceable. Any string with a colon in
it is a valid warning ID.

> I assumed that Octave:built-in-variable-assignment referred to masking a
built in variable or function

That warning ID is not used by Octave anymore, it could be removed or marked
as deprecated in the warning_ids list.

Once upon a time, this warning was only used to warn about specific built-in
variable names, like 'PS1' or 'save_precision', that I guess used to be global
variables but were changed into functions that you call like this to change
the value: PS1(">> "). It was never a generic warning for any variable that
shadows any function name.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58296>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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