|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #58012] inconsistend public vs private variable handling |
Date: | Thu, 19 Mar 2020 15:02:01 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36 |
URL: <https://savannah.gnu.org/bugs/?58012> Summary: inconsistend public vs private variable handling Project: GNU Octave Submitted by: None Submitted on: Thu 19 Mar 2020 07:01:59 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Michael Keller Originator Email: address@hidden Open/Closed: Open Release: 5.2.0 Discussion Lock: Any Operating System: Microsoft Windows _______________________________________________________ Details: Summary of inconsistent behaviour: 1. Bug in varnames() Octave reveals both public and private properties of class 2. Bug in isprop() Octave shows neither public nor private properties of class Details: In my opinion varnames() and isprop() should both show public properties if applied to a class. Private properties should not be shown. Both functions give different results and to me both seem wrong. The behaviour is also different from Matlab. It's two functions so it should probably be two bugs? But i think it's important that they should behave the same way. The attached script and 2 classes show the issue in detail. Strange enough Matlab behaves different in derived class which seems a Bug in Matlab (I will file that to Mathworks ;) _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 19 Mar 2020 07:01:59 PM UTC Name: demoScript.m Size: 2KiB By: None demoScript contains detailed description of expected behaviour <http://savannah.gnu.org/bugs/download.php?file_id=48627> ------------------------------------------------------- Date: Thu 19 Mar 2020 07:01:59 PM UTC Name: myDerivedClass.m Size: 191B By: None demoScript contains detailed description of expected behaviour <http://savannah.gnu.org/bugs/download.php?file_id=48628> ------------------------------------------------------- Date: Thu 19 Mar 2020 07:01:59 PM UTC Name: myClass.m Size: 290B By: None demoScript contains detailed description of expected behaviour <http://savannah.gnu.org/bugs/download.php?file_id=48629> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58012> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |