changeset 28479:5fb8449e4dd0 stable

warning_ids.m: Document "Octave:classdef-to-struct" ID. * warning_ids.m: Document "Octave:classdef-to-struct" ID.
author Rik <rik@octave.org>
date Mon, 15 Jun 2020 13:35:54 -0700
parents 7f586be7282c
children 888e79a46a85 1be719d8b375
files scripts/help/warning_ids.m
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/help/warning_ids.m	Mon Jun 15 08:41:54 2020 -0700
+++ b/scripts/help/warning_ids.m	Mon Jun 15 13:35:54 2020 -0700
@@ -139,6 +139,14 @@
 ## By default, the @code{Octave:built-in-variable-assignment} warning is
 ## enabled.
 ##
+## @item Octave:classdef-to-struct
+## If the @code{Octave:classdef-to-struct} warning is enabled, a warning
+## is issued when a classdef object is forcibly converted into a struct with
+## @code{struct (@var{CLASSDEF_OBJ})}.  Conversion removes the access
+## restrictions from the object and makes private and protected properties
+## visible.
+## By default, the @code{Octave:classdef-to-struct} warning is enabled.
+##
 ## @item Octave:colon-complex-argument
 ## If the @code{Octave:colon-complex-argument} warning is enabled, a warning
 ## is issued when one of the three arguments to the colon operator (base,