[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53871] Increment with += gives error in .m fi
From: |
Richard Kirk |
Subject: |
[Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file |
Date: |
Thu, 10 May 2018 09:35:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?53871>
Summary: Increment with += gives error in .m file
Project: GNU Octave
Submitted by: richardkirk
Submitted on: Thu 10 May 2018 01:35:25 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Richard Kirk
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
I have a 4.4.0 source build on CenoOS 6.5. Also seen by others on ubuntu 16.04
and octave 4.4.0. Does not happen on my previous 3.4.3 build.
I make a local file "dummy.m" with just 3 lines...
# Increment count
count += 1;
I now try to use += to increment 'count'...
octave:1> count = 0;
octave:2> count += 1;
octave:3> count
count = 1
Okay, that worked. Now let's do that by calling dummy.m...
octave:4> dummy
error: count(61,_): but count has size 1x1
error: called from
dummy at line 3 column 1
If I replace count += 1; with ++count; in dummy.m then it works.
This seemed similar to bug #52363. Doug Stewart tells me it is new, and needs
a separate bug.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53871>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file,
Richard Kirk <=
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file, John W. Eaton, 2018/05/10
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file, Richard Kirk, 2018/05/10
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file, John W. Eaton, 2018/05/10
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file, John W. Eaton, 2018/05/10
- [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file, Doug Stewart, 2018/05/10
- [Octave-bug-tracker] [bug #53871] In-place increment of a workspace variable with += in a script issues error, Rik, 2018/05/10
- [Octave-bug-tracker] [bug #53871] In-place increment of a workspace variable with += in a script issues error, Mike Miller, 2018/05/10
- [Octave-bug-tracker] [bug #53871] In-place increment of a workspace variable with += in a script issues error, Mike Miller, 2018/05/10
- [Octave-bug-tracker] [bug #53871] In-place increment of a workspace variable with += in a script issues error, Richard Kirk, 2018/05/11
- [Octave-bug-tracker] [bug #53871] In-place increment of a workspace variable with += in a script issues error, Richard Kirk, 2018/05/12