diff libinterp/octave.cc @ 19394:b39cbe9f3bb0

allow ranges to be disabled * ov.cc, ov.h: Allow creation of range object to be disabled. Also allow range objects to be forced, even when generally disabled. * pt-exp.h (tree_expression::for_cmd_expr): New member variable. (tree_expression::mark_as_for_cmd_expr, tree_expression::is_for_cmd_expr): New functions. * oct-parse.in.yy: Mark for command expressions. * pt-colon.cc (tree_colon_expression::make_range): Force creation of range if expression is a for command expression. * basics.txi, numbers.txi: Document changes.
author John W. Eaton <jwe@octave.org>
date Mon, 08 Dec 2014 12:59:47 -0500
parents 385499581a5e
children 18377fc879d0
line wrap: on
line diff
--- a/libinterp/octave.cc	Mon Dec 08 10:18:35 2014 -0500
+++ b/libinterp/octave.cc	Mon Dec 08 12:59:47 2014 -0500
@@ -488,6 +488,7 @@
   Fcrash_dumps_octave_core (octave_value (false));
   Fdisable_diagonal_matrix (octave_value (true));
   Fdisable_permutation_matrix (octave_value (true));
+  Fdisable_range (octave_value (true));
   Ffixed_point_format (octave_value (true));
   Fhistory_timestamp_format_string (octave_value ("%%-- %D %I:%M %p --%%"));
   Fpage_screen_output (octave_value (false));