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

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

[Octave-bug-tracker] [bug #62556] a +=1 generates an error on 7.1.0


From: David Contreras
Subject: [Octave-bug-tracker] [bug #62556] a +=1 generates an error on 7.1.0
Date: Wed, 1 Jun 2022 14:16:29 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62556>

                 Summary: a +=1 generates an error on 7.1.0
                 Project: GNU Octave
               Submitter: dvd101
               Submitted: mié 01 jun 2022 18:16:27 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: David
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: mié 01 jun 2022 18:16:27 UTC  By: David Contreras <dvd101>
On 7.1.0 this code generates an error


a = 1;
a +=1

error: a used as variable and later as function

The issue is found where there is a space before "+=" and there is no space
after. 

All these expressions work fine


a += 1
a+=1
a+= 1


The same happens with other operands



a +=1

error: a used as variable and later as function


a -=1

error: a used as variable and later as function



a *=1

error: a used as variable and later as function


a /=1

error: a used as variable and later as function

I did check for 6.4.0 and it works fine on that version

I'm very thankful for this open source software, I hope this bug report is
useful.







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/




reply via email to

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