Mercurial > octave
changeset 30448:7ecd07721cca stable
doc: Increment and decrement operators must "hug" the variable they affect (bug #60882).
* doc/interpreter/expr.txt: Document that no white spaces are allowed between
increment and decrement operators and the variable they affect.
* NEWS: Add note about this change.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 07 Dec 2021 16:20:15 +0100 |
parents | 8a341cf6773d |
children | 688742af38bf 0e553bb97d31 8d331c31c3ae 86ddba86efbe |
files | NEWS doc/interpreter/expr.txi |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Dec 07 15:58:53 2021 +0100 +++ b/NEWS Tue Dec 07 16:20:15 2021 +0100 @@ -76,6 +76,11 @@ same number of digits for each value such as `[0x00_00_01; 0x00_01_00; 0x01_00_00]`. +- The increment and decrement operators `++` and `--` must "hug" their +corresponding variables. In previous versions of Octave, whitespaces +between these operators and the variable they affect were allowed. That +is no longer the case. + - The `mldivide` function (i.e., the `\` operator) now uses an LU decomposition to solve nearly singular full square matrices. This is Matlab-compatible and yields results which more nearly minimize `norm
--- a/doc/interpreter/expr.txi Tue Dec 07 15:58:53 2021 +0100 +++ b/doc/interpreter/expr.txi Tue Dec 07 16:20:15 2021 +0100 @@ -1455,6 +1455,10 @@ For matrix and vector arguments, the increment and decrement operators work on each element of the operand. +The increment and decrement operators must "hug" their corresponding +variable. That means, no white spaces are allowed between these +operators and the variable they affect. + Here is a list of all the increment and decrement expressions. @table @code