[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58677] Error when using += operator
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #58677] Error when using += operator |
Date: |
Tue, 30 Jun 2020 13:02:31 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #58677 (project octave):
Status: None => Confirmed
Release: 5.2.0 => 6.0.90
_______________________________________________________
Follow-up Comment #7:
Confirmed.
I used Dmitri's simpler example, slightly modified, and uploaded as ta.m and
tb.m. tb.m is now
1;
whos x
fflush (stdout)
x += 5;
The resulting output shows that the Octave interpreter knows 'x' is a
variable, but still gets the '+=' wrong.
octave:1> ta
Variables visible from the current scope:
variables in scope: top scope
Attr Name Size Bytes Class
==== ==== ==== ===== =====
x 10x1 80 double
Total is 10 elements using 80 bytes
error: x used as variable and later as function
error: called from
tb at line 4 column 1
ta at line 3 column 1
ans = 0
I changed the version to 6.0.90. It would be best to fix this before the 6.1
release assuming it is not too difficult.
(file #49399, file #49400)
_______________________________________________________
Additional Item Attachment:
File name: ta.m Size:0 KB
<https://savannah.gnu.org/file/ta.m?file_id=49399>
File name: tb.m Size:0 KB
<https://savannah.gnu.org/file/tb.m?file_id=49400>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58677>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58677] Error when using += operator, (continued)
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Dmitri A. Sergatskov, 2020/06/29
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Joaquín, 2020/06/30
- [Octave-bug-tracker] [bug #58677] Error when using += operator, Dmitri A. Sergatskov, 2020/06/30
- [Octave-bug-tracker] [bug #58677] Error when using += operator,
Rik <=
- [Octave-bug-tracker] [bug #58677] Error when using += operator, John W. Eaton, 2020/06/30