[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54288] some small patches for Octave 4.4.0 do
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #54288] some small patches for Octave 4.4.0 document |
Date: |
Wed, 11 Jul 2018 20:48:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #2, bug #54288 (project octave):
Thank maintainer, as always, for fixing so many bugs every day.
I did some more trying, and found that it seems that if we use
warning (MODE_STRUCT)
then the function also thinks we are using the syntax
warning (WARNING_STRUCT)
to change the state of warnings rather than modes.
If it is so, the last line in the docstring header
@deftypefnx {} {} warning (@var{mode_struct})
should be removed.
The function "warning" is not in an M-file. I'm not familiar with C++, so I
was just guessing the behavior from the output. Maybe my guess is wrong.
Below is the output:
octave:1> warning
By default, warnings are enabled.
off Octave:array-as-logical
off Octave:array-to-scalar
off Octave:array-to-vector
off Octave:imag-to-real
off Octave:language-extension
off Octave:missing-semicolon
off Octave:neg-dim-as-zero
off Octave:resize-on-range-error
off Octave:separator-insert
off Octave:single-quote-string
off Octave:str-to-num
off Octave:mixed-string-concat
off Octave:variable-switch-label
octave:2> s = warning("off","verbose")
s =
scalar structure containing the fields:
identifier = verbose
state = on
octave:3> warning
By default, warnings are enabled.
off Octave:array-as-logical
off Octave:array-to-scalar
off Octave:array-to-vector
off Octave:imag-to-real
off Octave:language-extension
off Octave:missing-semicolon
off Octave:neg-dim-as-zero
off Octave:resize-on-range-error
off Octave:separator-insert
off Octave:single-quote-string
off Octave:str-to-num
off Octave:mixed-string-concat
off Octave:variable-switch-label
octave:4> warning(s)
octave:5> warning
By default, warnings are enabled.
off Octave:array-as-logical
off Octave:array-to-scalar
off Octave:array-to-vector
off Octave:imag-to-real
off Octave:language-extension
off Octave:missing-semicolon
off Octave:neg-dim-as-zero
off Octave:resize-on-range-error
off Octave:separator-insert
off Octave:single-quote-string
off Octave:str-to-num
off Octave:mixed-string-concat
off Octave:variable-switch-label
on verbose
octave:6> warning("off","verbose")
octave:7> warning
By default, warnings are enabled.
off Octave:array-as-logical
off Octave:array-to-scalar
off Octave:array-to-vector
off Octave:imag-to-real
off Octave:language-extension
off Octave:missing-semicolon
off Octave:neg-dim-as-zero
off Octave:resize-on-range-error
off Octave:separator-insert
off Octave:single-quote-string
off Octave:str-to-num
off Octave:mixed-string-concat
off Octave:variable-switch-label
on verbose
octave:8>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54288>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/