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

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

[Octave-bug-tracker] [bug #44940] Empty class indexing should result in


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #44940] Empty class indexing should result in copy of object rather than error
Date: Wed, 06 May 2015 17:17:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0

Follow-up Comment #2, bug #44940 (project octave):

The proposed fix works for me too, and doesn't cause any of the tests to fail.
Unfortunately we don't have that much stuff in core with tests that uses
classdef to pick up any problem.

I wrote a simple test for this (attached). It modifies properties on the copy
to check that indeed we get the same object.

Doing this, I noticed that there's no way to check that two variables actually
hold the same object (I couldn't find anything on Matlab documentation
either). isequal will compare the values of the object properties so it's not
good for this.

(file #33944)
    _______________________________________________________

Additional Item Attachment:

File name: bug44940.cset                  Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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