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

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

[Octave-bug-tracker] [bug #45118] isequal doesn't call overloaded isequa


From: Julien Bect
Subject: [Octave-bug-tracker] [bug #45118] isequal doesn't call overloaded isequal on struct fields
Date: Sun, 17 May 2015 07:09:49 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0

URL:
  <http://savannah.gnu.org/bugs/?45118>

                 Summary: isequal doesn't call overloaded isequal on struct
fields
                 Project: GNU Octave
            Submitted by: jbect
            Submitted on: dim. 17 mai 2015 07:09:48 GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0-rc4
        Operating System: Any

    _______________________________________________________

Details:

The title says it all: isequal doesn't call overloaded isequal on struct
fields.

Here is an example.


>> pkg install -forge stk  # currently, stk 2.2.1
>> pkg load stk
>> x = stk_dataframe (rand (3, 2), {'A' 'B'})

x = <3x2 stk_dataframe array>

   :         A         B
 * :  0.433623  0.516320
 * :  0.119426  0.044071
 * :  0.378124  0.801516


Now, using a breakpoint in @stk_dataframe/isequal.m, I can confirm that the
overload isequal is called in this case:


>> isequal (x, x)
ans =  1


but not in this case:


>> xx.a = x;
>> isequal (xx, xx)
ans =  0






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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