[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: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i' and 'j', but not other variable names |
Date: |
Tue, 31 May 2022 20:30:52 -0400 (EDT) |
Update of bug #62552 (project octave):
Status: None => Confirmed
Summary: Operator spacing works for i and j but no other
variables => In-place operator spacing works for 'i' and 'j', but not other
variable names
_______________________________________________________
Follow-up Comment #2:
To make it even clearer, the normal failing case is
k = 0; k +=1
which issues an error because this looks like command function calling of the
function 'k' with string argument '+=1'.
The equivalent
i = 0; i +=1
does not issue an error and instead calls the in-place addition operator.
This might have something to do with i,j being complex constants.
Incidentally, this is also an issue for 'I', 'J' which are also parsed as
complex constants. In addition, 'i', 'j', 'I', 'J' are also functions and
that may be a further complication.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62552>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/