octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i' and 'j', but not other variable names
Date: Thu, 2 Jun 2022 08:39:49 -0400 (EDT)

Follow-up Comment #15, bug #62552 (project octave):

Maybe this?

- For compatibility with command syntax, inplace operators (`+=`, `-=`,
`*=`, `.*=`, `/=`, `./=`, `\=`, `.\=`, `^=`, `.^=`, `|=`, `&=`) must now
either be followed by a whitespace character or must not be preceded by a
whitespace character.  For commands with binary operators (`+`, `-`, `*`,
 `.*`, `/`, `./`, `\`, `.\`, `^`, `.^`, `|`, `&`, `||`, `&&`) without
assignment, the same rules apply.  That was not a requirement in previous
versions of Octave.
E.g., `a + b`, `a+ b`, or `a+b` are valid if `a` is a variable.  In
contrast, `a +b` is not valid if `a` is a variable.  The latter example
is now interpreted as command syntax equivalent to the function syntax
`a ("+b")`.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62552>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]