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

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

[Octave-bug-tracker] [bug #52582] Dependent constant properties in class


From: avlas
Subject: [Octave-bug-tracker] [bug #52582] Dependent constant properties in classdef errors: no such file
Date: Wed, 24 Apr 2019 14:59:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.86 Chrome/73.0.3683.86 Safari/537.36

Follow-up Comment #15, bug #52582 (project octave):

Sorry, I was not familiar with rich markup:


classdef testL
    properties
      engine
    end
    properties(Constant=true, Hidden=true, Access=private)
        isMatlab = testL.f_isMatlab()
    end
    methods
        function obj = testL()
            if testL.isMatlab
                obj.engine = 'matlab';
            else
                obj.engine = 'octave';
            end
        end
    end
    methods(Static=true, Hidden=true)
        function bool = f_isMatlab()
            LIC = license('inuse');
            bool = strcmp(LIC.feature,'matlab');
        end
    end
end


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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