comparison scripts/miscellaneous/setfield.m @ 19886:e9a0bd0b125c

Rename 'matlab-incompatible' warning to 'language-extension'. * libinterp/corefcn/error.cc: replace the 'matlab-incompatible' warning with 'language-extension'. This wording will hopefully make it clear that it does not stop or prevent Matlab code from running correctly in Octave, it simply warns about usage of Octave only features. * libinterp/parse-tree/lex.h, libinterp/parse-tree/lex.ll: throw the new 'language-extension' warning ID. Also, adjust function names to better reflect the warning name. * libinterp/corefcn/gripes.cc, libinterp/octave-value/ov-struct.cc, liboctave/numeric/bsxfun.h: use the new 'language-extension' warning ID. * scripts/miscellaneous/warning_ids.m: fix warning ID and reword text. * doc/interpreter/basics.txi, doc/interpreter/container.txi, scripts/miscellaneous/setfield.m: replace warning ID on documentation. * NEWS: make note of the change.
author Carnë Draug <carandraug@octave.org>
date Mon, 23 Feb 2015 20:43:54 +0000
parents 9fc020886ae9
children
comparison
equal deleted inserted replaced
19885:059a05bc398c 19886:e9a0bd0b125c
43 ## @noindent 43 ## @noindent
44 ## Note that ordinary structure syntax @code{@var{s}.foo bar = 42} cannot be 44 ## Note that ordinary structure syntax @code{@var{s}.foo bar = 42} cannot be
45 ## used here, as the field name is not a valid Octave identifier because of 45 ## used here, as the field name is not a valid Octave identifier because of
46 ## the space character. Using arbitrary strings for field names is 46 ## the space character. Using arbitrary strings for field names is
47 ## incompatible with @sc{matlab}, and this usage will emit a warning if the 47 ## incompatible with @sc{matlab}, and this usage will emit a warning if the
48 ## warning ID @code{Octave:matlab-incompatible} is enabled. 48 ## warning ID @code{Octave:language-extension} is enabled.
49 ## @xref{XREFwarning_ids}. 49 ## @xref{XREFwarning_ids}.
50 ## 50 ##
51 ## With the second calling form, set a field of a structure array. The 51 ## With the second calling form, set a field of a structure array. The
52 ## input @var{sidx} selects an element of the structure array, @var{field} 52 ## input @var{sidx} selects an element of the structure array, @var{field}
53 ## specifies the field name of the selected element, and @var{fidx} selects 53 ## specifies the field name of the selected element, and @var{fidx} selects