comparison NEWS @ 18129:e473c4853afc gui-release

enable non-integer ranges as indices by default and deprecate preference * octave.cc (maximum_braindamage): Don't call Fdo_brainded_shortcircuit_evaluation. * error.cc (initialize_default_warning_state): Don't set Octave:noninteger-range-as-index to "error". * octave.cc (maximum_braindamage): Don't call Fallow_noninteger_range_as_index. Don't set Octave:noninteger-range-as-index to "on". * ov-range.h, ov-range.cc (Vallow_noninteger_range_as_index): Now static. Set default value to true. * ov.h (octave_value::index_vector): New arg, require_integers. * ov-base.cc, ov-base.h (octave_value::index_vector): Likewise. * ov-base-diag.cc, ov-base-diag.h, ov-bool-mat.h, ov-bool-sparse.h, ov-bool.h, ov-ch-mat.cc, ov-ch-mat.h, ov-class.cc, ov-class.h, ov-colon.h, ov-complex.h, ov-float.h, ov-flt-re-mat.h, ov-intx.h, ov-lazy-idx.h, ov-perm.cc, ov-perm.h, ov-range.cc, ov-range.h, ov-re-mat.h, ov-re-sparse.cc, ov-re-sparse.h, ov-scalar.h: Make corresponding changes in all derived methods. * ov-range.cc (octave_range::index_vector): If new require_integers argument is true, also require integer arguments regardless of the setting of Vallow_noninteger_range_as_index. * utils.cc (Fisindex): Don't temporarily set Vallow_noninteger_range_as_index. Call index_vector with argument of true. * NEWS: Mention change in default value, warning state and deprecated function.
author John W. Eaton <jwe@octave.org>
date Wed, 11 Dec 2013 23:35:34 -0500
parents d96747f74b1e
children c7b68a11074b f57148641869
comparison
equal deleted inserted replaced
18128:4a4897cd6da1 18129:e473c4853afc
7 ** The preference 7 ** The preference
8 8
9 do_braindead_shortcircuit_evaluation 9 do_braindead_shortcircuit_evaluation
10 10
11 is now enabled by default. 11 is now enabled by default.
12
13 ** The preference
14
15 allow_noninteger_range_as_index
16
17 is now enabled by default and the warning ID
18
19 Octave:noninteger-range-as-index
20
21 is now set to "on" by default instead of "error" by default and "on"
22 for --traditional.
12 23
13 ** Other new functions added in 4.0.0: 24 ** Other new functions added in 4.0.0:
14 25
15 validateattributes 26 validateattributes
16 27
27 38
28 The following functions have been deprecated in Octave 4.0 and will 39 The following functions have been deprecated in Octave 4.0 and will
29 be removed from Octave 4.4 (or whatever version is the second major 40 be removed from Octave 4.4 (or whatever version is the second major
30 release after 4.0): 41 release after 4.0):
31 42
43 allow_noninteger_range_as_index
32 do_braindead_shortcircuit_evaluation 44 do_braindead_shortcircuit_evaluation
33 45
34 --------------------------------------------------------- 46 ---------------------------------------------------------
35 47
36 See NEWS.3 for old news. 48 See NEWS.3 for old news.