[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48090] warning ("query", ID) returns a struct
From: |
Francesco Potortì |
Subject: |
[Octave-bug-tracker] [bug #48090] warning ("query", ID) returns a structure with undocumented fields |
Date: |
Tue, 5 Jul 2016 16:51:53 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Follow-up Comment #2, bug #48090 (project octave):
After the help for 'query' add something like this:
'query' returns a struct with two fields:
- identifier, which is a string containing the ID name of the warning
- state, which is astring whose contents is one of 'on', 'off', 'error'
After the help for 'local' add something like this:
If you want to disable a warning only around some lines of code, using 'local'
may be too coarse. In this case, you can write something along these lines:
prev = warning('query', 'Octave:divide-by-zero');
warning('off', 'Octave:divide-by-zero');
...
warning(prev.state, 'Octave:divide-by-zero');
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48090>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #48090] warning ("query", ID) returns a structure with undocumented fields,
Francesco Potortì <=