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

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

[Octave-bug-tracker] [bug #58012] isprop() and fieldnames() not Matlab-c


From: Rik
Subject: [Octave-bug-tracker] [bug #58012] isprop() and fieldnames() not Matlab-compatible for private or hidden properties
Date: Sat, 21 Mar 2020 21:31:07 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #58012 (project octave):

              Item Group:        Incorrect Result => Matlab Compatibility   
                  Status:                    None => Confirmed              
                 Release:                   5.2.0 => dev                    
        Operating System:       Microsoft Windows => Any                    
                 Summary: inconsistend public vs private variable handling =>
isprop() and fieldnames() not Matlab-compatible for private or hidden
properties

    _______________________________________________________

Follow-up Comment #1:

There is no support for classdef objects in isprop, which is why it always
returns false.  It's pretty easy to fix that and I already have a patch for
it.

While it may be counter-intuitive, Octave needs to maintain compatibility with
Matlab so that code can run repeatably in either environment.  Hence, isprop()
needs to return information on all properties, whether they are public,
private, or hidden.

You can replace fieldnames() with properties() which will only list the
public, non-hidden properties.  However, this will not be available until the
6.1 release (which is currently in process, but with no fixed date).

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58012>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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