Mercurial > jwe > octave
diff doc/interpreter/expr.txi @ 22620:74fb14727a30
doc: Remove DOCSTRING references to non-existent functions (bug #49329).
* expr.txi: Remove DOCSTRING entries for allow_noninteger_range_as_index and
do_braindead_shortcircuit_evaluation.
* grammar.txi: Remove mention of allow_noninteger_range_as_index.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 13 Oct 2016 08:20:10 -0700 |
parents | bac0d6f07a3e |
children | 3a2b891d0b33 |
line wrap: on
line diff
--- a/doc/interpreter/expr.txi Wed Oct 12 18:24:08 2016 -0700 +++ b/doc/interpreter/expr.txi Thu Oct 13 08:20:10 2016 -0700 @@ -319,8 +319,6 @@ @DOCSTRING(isindex) -@DOCSTRING(allow_noninteger_range_as_index) - @node Calling Functions @section Calling Functions @@ -1009,12 +1007,10 @@ @sc{matlab} has special behavior that allows the operators @samp{&} and @samp{|} to short-circuit when used in the truth expression for @code{if} and -@code{while} statements. Octave also behaves the same way by default, -though the use of the @samp{&} and @samp{|} operators in this way is -strongly discouraged. Instead, you should use the @samp{&&} and @samp{||} -operators that always have short-circuit behavior. - -@DOCSTRING(do_braindead_shortcircuit_evaluation) +@code{while} statements. Octave behaves the same way for compatibility, +however, the use of the @samp{&} and @samp{|} operators in this way is +strongly discouraged and a warning will be issued. Instead, you should use +the @samp{&&} and @samp{||} operators that always have short-circuit behavior. Finally, the ternary operator (?:) is not supported in Octave. If short-circuiting is not important, it can be replaced by the @code{ifelse}