bugGNU Octave - Bugs: bug #60295, Document that "isprop"...


bug #60295: Document that "isprop" in Octave 6 only works for graphics objects

Submitted by:  Valentino Lau <lau73>
Submitted on:  Sat 27 Mar 2021 09:30:28 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  lau73 Open/Closed:  Closed
Release:  6.2.0 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 05 Apr 2021 04:17:13 PM UTC, comment #4: 

I added a note on the 6.X branch about isprop not working on classdef objects (http://hg.savannah.gnu.org/hgweb/octave/rev/0e734bdfd6b2).

Marking bug as fixed and closing report.

Rik <rik5>
Project Administrator
Mon 29 Mar 2021 07:35:41 AM UTC, comment #3: 

IIUC, Rik added support for classdef objects to "isprop" with this changeset:

Like arb already wrote this will be available with Octave 7.

We could still better document in Octave 6 though that "isprop" only works for graphics properties in that version.

Re-categorizing as a documentation improvement for Octave 6.

Markus M├╝tzel <mmuetzel>
Project Member
Sun 28 Mar 2021 08:03:25 AM UTC, comment #2: 
A.R. Burgers <arb>
Sun 28 Mar 2021 07:57:01 AM UTC, comment #1: 

does work in dev for me, but indeed not in 5.2 and 6.2

A.R. Burgers <arb>
Sat 27 Mar 2021 09:30:28 PM UTC, original submission:  

The function "isprop" is not detecting the property, it always returns false (0).

The following test code was used:

% class definition
classdef student < handle
        function obj = student(ID, Birthday, Address)
            obj.ID = ID;
            obj.Birthday = Birthday;
            obj.Address = Address;
% main program
clear; clc;

s1 = student(10,'2000-10-15','Down Street,73');

isprop(s1, "ID")

isprop(s1, "Address")

% answers
ans = 0
ans = 0

If I run in MATLAB, this program returns the correct

Valentino Lau <lau73>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arb (Posted a comment)
  • -email is unavailable- added by lau73 (Submitted the item)
  • -email is unavailable- added by lau73

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-05 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    2021-03-29 mmuetzel Item GroupNone => Documentation
        Operating SystemMicrosoft Windows => Any
        SummaryBug in function "isprop" => Document that "isprop" in Octave 6 only works for graphics objects
    2021-03-27 lau73 Carbon-Copy- => Added lau73

    Back to the top

    Powered by Savane 3.7