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

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

[Octave-bug-tracker] [bug #42453] isequal does not accept java objects


From: Rik
Subject: [Octave-bug-tracker] [bug #42453] isequal does not accept java objects
Date: Wed, 28 May 2014 15:32:24 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

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

                 Summary: isequal does not accept java objects
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 28 May 2014 08:32:24 AM PDT
                Category: Octave Function
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Not that I particularly care, so I made this a feature request, but isequal()
fails with java objects.

Sample code:


x = javaObject ("java.lang.Double", pi);
isequal (x, x)


This probably needs to wait until ov-java.cc implements the overloaded
struct() call.  At that point we can use the same code in __isequal__.m that
deals with regular objects by converting them to structs and then comparing
fieldnames and values.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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