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

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

[Octave-bug-tracker] [bug #46660] object array writing into class member


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #46660] object array writing into class member alters another class member
Date: Tue, 26 Jul 2016 00:24:40 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #4, bug #46660 (project octave):

I pushed this changeset here:

  http://hg.savannah.gnu.org/hgweb/octave/rev/eb8667f2faac

then I started doing some tests (I know, backwards).

Before the patch, I confirm the reported buggy behavior.

With the patch, I'm seeing [](0x0) returned when displaying a(2).x or a(2).y
in all cases:


octave:1> clear all;
octave:2> clear classes;
octave:3> a(1)=testclass;
octave:4> a(2)=testclass;
octave:5> a(2).x = 123;
octave:6> display(a(2).x);
[](0x0)

octave:7> display(a(2).y);
[](0x0)

octave:8> a(2).y = 321;
octave:9> display(a(2).x);
[](0x0)

octave:10> display(a(2).y);
[](0x0)


Not sure what's happened here.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46660>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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