comparison NEWS @ 18126:d76f790b4eec gui-release

enable do_braindead_shortcircuit_evaluation by default and deprecate * octave.cc (maximum_braindamage): Don't call Fdo_brainded_shortcircuit_evaluation. * pt-exp.h (tree_expression::mark_braindead_shortcircuit): Eliminate file name argument. * pt-binop.h, pt-binop.cc (tree_binary_expression::mark_braindead_shortcircuit): Likewise. * oct-parse.in.yy (if_cmd_list1, elseif_clause, loop_command): Eliminate argument from call to mark_braindead_shortcircuit. * pt-binop.h, pt-binop.cc (Vdo_braindead_shortcircuit_evaluation): Initialize to true. (tree_binary_expression::matlab_style_short_circuit_warning): New function. (tree_binary_expression::rvalue1): Call matlab_style_short_circuit_warning if short circuit evaluation occurs. (Fdo_braindead_shortcircuit_evaluation): Display deprecated warning. Delete tests for do_braindead_shortcircuit_evaluation. (tree_binary_expression::braindead_shortcircuit_warning_issued): New member variable. * NEWS: Mention change in default value and deprecated function.
author John W. Eaton <jwe@octave.org>
date Wed, 11 Dec 2013 20:51:22 -0500
parents 834549618a52
children d96747f74b1e
comparison
equal deleted inserted replaced
18107:834549618a52 18126:d76f790b4eec
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
4 ** The preference
5
6 do_braindead_shortcircuit_evaluation
7
8 is now enabled by default.
3 9
4 ** Other new functions added in 4.0.0: 10 ** Other new functions added in 4.0.0:
5 11
6 validateattributes 12 validateattributes
7 13
18 24
19 The following functions have been deprecated in Octave 4.0 and will 25 The following functions have been deprecated in Octave 4.0 and will
20 be removed from Octave 4.4 (or whatever version is the second major 26 be removed from Octave 4.4 (or whatever version is the second major
21 release after 4.0): 27 release after 4.0):
22 28
23 *none* 29 do_braindead_shortcircuit_evaluation
24 30
25 --------------------------------------------------------- 31 ---------------------------------------------------------
26 32
27 See NEWS.3 for old news. 33 See NEWS.3 for old news.