changeset 29932:b39203a44db2

Call print_struct_array_contents(1) when '--traditional' option used. * NEWS: Announce change in Matlab compatibility section. * basics.txi: Update documentation for '--traditional' mode. * interpreter.cc (Fmaximum_braindamage): Call print_struct_array_contents(1).
author Rik <rik@octave.org>
date Fri, 30 Jul 2021 12:05:48 -0700
parents 7faff48840eb
children fb0436a0c126
files NEWS doc/interpreter/basics.txi libinterp/corefcn/interpreter.cc
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Jul 30 11:46:05 2021 -0400
+++ b/NEWS	Fri Jul 30 12:05:48 2021 -0700
@@ -180,6 +180,11 @@
 - The functions `quantile` and `prctile` now permit operating on
 dimensions greater than `ndims (x)`.
 
+- The function `iqr` now uses Matlab compatible interpolation for
+quantile values.  Dimension input now allows a vector, "all", and
+dimensions greater than `ndims (x)`.  The function compatibly handles
+`Inf` and `NaN` input values.
+
 - The function `importdata` now produces more compatible results when
 the file contains a 2-D text matrix.
 
@@ -211,10 +216,9 @@
 Matlab code, but for which Octave does not yet implement the
 functionality.  By default, this warning is enabled.
 
-- The function `iqr` now uses Matlab compatible interpolation for
-quantile values.  Dimension input now allows a vector, "all", and
-dimensions greater than `ndims (x)`.  The function compatibly handles
-`Inf` and `NaN` input values.
+- When Octave is started with the `--traditional` option for maximum
+compatibility the `print_struct_array_contents` internal variable is set
+to true.
 
 ### Alphabetical list of new functions added in Octave 7
 
--- a/doc/interpreter/basics.txi	Fri Jul 30 11:46:05 2021 -0400
+++ b/doc/interpreter/basics.txi	Fri Jul 30 12:05:48 2021 -0700
@@ -256,6 +256,7 @@
 fixed_point_format              = true
 history_timestamp_format_string = "%%-- %D %I:%M %p --%%"
 print_empty_dimensions          = false
+print_struct_array_contents     = true
 save_default_options            = "-mat-binary"
 struct_levels_to_print          = 0
 @end group
@@ -269,6 +270,7 @@
 Octave:abbreviated-property-match
 Octave:colon-nonscalar-argument
 Octave:data-file-in-path
+Octave:empty-index
 Octave:function-name-clash
 Octave:possible-matlab-short-circuit-operator
 @end group
--- a/libinterp/corefcn/interpreter.cc	Fri Jul 30 11:46:05 2021 -0400
+++ b/libinterp/corefcn/interpreter.cc	Fri Jul 30 12:05:48 2021 -0700
@@ -2029,13 +2029,14 @@
     m_history_system.timestamp_format_string ("%%-- %D %I:%M %p --%%");
 
     m_error_system.beep_on_error (true);
+
     Fconfirm_recursive_rmdir (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));
     Fprint_empty_dimensions (octave_value (false));
+    Fprint_struct_array_contents (octave_value (true));
     Fstruct_levels_to_print (octave_value (0));
 
     disable_warning ("Octave:abbreviated-property-match");