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

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

[Octave-bug-tracker] [bug #60295] Bug in function "isprop"


From: Valentino Lau
Subject: [Octave-bug-tracker] [bug #60295] Bug in function "isprop"
Date: Sat, 27 Mar 2021 17:30:30 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60295>

                 Summary: Bug in function "isprop"
                 Project: GNU Octave
            Submitted by: lau73
            Submitted on: Sat 27 Mar 2021 09:30:28 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: lau73
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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

The following test code was used:

----------------------------------------------
% class definition 
classdef student < handle
    properties
        ID
        Birthday
        Address         
    end
    methods
        function obj = student(ID, Birthday, Address)
            obj.ID = ID;
            obj.Birthday = Birthday;
            obj.Address = Address;
        end
    end
end
----------------------------------------------
% 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
answers.






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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