[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46660] object array writing into class member
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #46660] object array writing into class member alters another class member |
Date: |
Mon, 27 Jun 2016 11:43:09 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #46660 (project octave):
Severity: 4 - Important => 3 - Normal
_______________________________________________________
Follow-up Comment #1:
For those wishing to repeat this, you can cut-and-paste the following.
clear all;
clear classes;
a(1)=testclass;
a(2)=testclass;
a(2).x = 123;
display(a(2).x);
%123
display(a(2).y);
%[](0x0)
a(2).y = 321;
display(a(2).x);
%[](0x0) <----- writing into a(2).y has altered a(2).x
display(a(2).y);
Note that if this is placed into a script and executed, then it works
correctly:
octave:14> testclasstest
123
[](0x0)
123
321
The fact that it works in a script makes the severity of this problem much
less than it would otherwise be.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46660>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46660] object array writing into class member alters another class member,
Lachlan Andrew <=