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

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

[Octave-bug-tracker] [bug #61673] classdef - (Access = hidden) results i


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61673] classdef - (Access = hidden) results in spurious figure window
Date: Wed, 15 Dec 2021 11:46:53 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36 Edg/96.0.1054.53

Follow-up Comment #12, bug #61673 (project octave):

In addition singular meta-classes seem to work:

classdef testclassdef
  
  methods (Access = public)
    function this = testclassdef (varargin)
      a = 1;
    end
  end
  
  methods (Access = {?testclassdef2, ?testclassdef3})
    function this = say_hello(this)
      disp('hello');
    end
  end
  
  methods (Access = ?testclassdef2)
    function this = say_hello2(this)
      disp('hello2');
    end
  end
  
end


So, it looks like the following is allowed for the `Access` attribute:
- any of the keywords `public`, `private`, `protected`
- string literals corresponding to these keywords: `'public'`, `'private'`,
`'protected'`
- single meta-class objects (like `?testclassdef2`)
- cell arrays of meta-class objects (like `{?testclassdef2, ?testclassdef3}`)

Everything else seems to result in an error on construction (if the
methods-block is not empty).


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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