[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32071] isequal with objects
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #32071] isequal with objects |
Date: |
Thu, 06 Jan 2011 19:04:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 |
URL:
<http://savannah.gnu.org/bugs/?32071>
Summary: isequal with objects
Project: GNU Octave
Submitted by: gyom
Submitted on: Thu Jan 6 19:04:16 2011
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
'isequal' does not work when called on objects:
octave> a=myclass; b=myclass;
octave> isequal(a,b)
error: find: wrong type argument `class'
error: called from:
error: octave/scripts/general/private/__isequal__.m at line 147, column 11
Correct behaviour should be comparing all property values (ie the underlying
structure) - it seems to be what MATLAB does (and it doesn't even attempt
apparently to call overloaded methods eq.m or ne.m event if they are defined).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32071>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #32071] isequal with objects,
Guillaume <=