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

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

[Octave-bug-tracker] [bug #64976] Unable accessing properties (as functi


From: F. Cuvelier
Subject: [Octave-bug-tracker] [bug #64976] Unable accessing properties (as function) of a class defined in a namespace
Date: Mon, 4 Dec 2023 05:22:11 -0500 (EST)

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

                 Summary: Unable accessing properties (as function) of a class
defined in a namespace
                   Group: GNU Octave
               Submitter: cuvelierp13
               Submitted: lun. 04 déc. 2023 10:22:08
                Category: Classdef
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 8.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: lun. 04 déc. 2023 10:22:08    By: F. Cuvelier <cuvelierp13>
Hi, 
I create a class in a namespace with the constructor  obj=titi.toto(1,2,3),
the properties get and disp are not available.

  .
├── test01.m
├── +titi
│   └── @toto
│       ├── disp.m
│       ├── get.m
│       └── toto.m
└── @toto
    ├── disp.m
    ├── get.m
    └── toto.m


>> obj1=toto(1,2,3); % Class from file @toto/toto.m
>> disp(obj1)  % ok using method @toto/disp.m
  A=1
  B=2
  C=3
>> get(obj1,'A') % ok using method @toto/get.m
x = 1
>> obj2=titi.toto(1,2,3); % Class from file +titi/@toto/toto.m
>> disp(obj2)  % failed don't use method @toto/disp.m, using default one
  titi.toto object with properties:

      A: [1x1 double]
      B: [1x1 double]
      C: [1x1 double]
>> get(obj2,'A')  % failed don't use method @toto/get.m, using default one
(get for graphics handle)
error: get: H must be a graphics handle









    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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