Mercurial > hg > octave-nkf
comparison NEWS @ 15427:6823ad7a25b1
implement local option for warnings
* error.cc (warning_query): New function.
(Fwarning): Handle "local" option when setting warning states.
Use warning_query to handle query option.
* ov-usr-fcn.cc (octave_usr_function::restore_warning_states):
New private function.
(octave_usr_function::bind_automatic_vars): Create hidden auto
variable .saved_warning_states.
(octave_usr_function::do_multi_index_op): Insert pointer to
restore_warning_states function in unwind_protect frame.
* ov-usr-fcn.h (octave_usr_function::restore_warning_states):
Provide decl.
* NEWS: Note user visible change.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Sep 2012 12:20:39 -0400 |
parents | 3a33f93c9e62 |
children | 7a0a202fedfe |
comparison
equal
deleted
inserted
replaced
15426:a42d69d5a36d | 15427:6823ad7a25b1 |
---|---|
1 Summary of important user-visible changes for version 4.0: | 1 Summary of important user-visible changes for version 4.0: |
2 --------------------------------------------------------- | 2 --------------------------------------------------------- |
3 | 3 |
4 ** A new GUI is now available with Octave. | 4 ** A new GUI is now available with Octave. |
5 | |
6 ** Warning states may now be set temporarily, until the end of the | |
7 current function, using the syntax | |
8 | |
9 warning STATE ID "local" | |
10 | |
11 in which STATE may be "on", "off", or "error". Changes to warning | |
12 states that are set locally affect the current function and all | |
13 functions called from the current scope. The previous warning state | |
14 is restored on return from the current function. The "local" | |
15 option is ignored if used in the top-level workspace. | |
5 | 16 |
6 Summary of important user-visible changes for version 3.8: | 17 Summary of important user-visible changes for version 3.8: |
7 --------------------------------------------------------- | 18 --------------------------------------------------------- |
8 | 19 |
9 ** Octave now supports nested functions with scoping rules that are | 20 ** Octave now supports nested functions with scoping rules that are |