[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:55:19 -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 #14, bug #52582 (project octave):
I'm having a similar (if not the same) issue in Octave 5.1, with the following
example that uses the license to check the backend engine, whether Matlab or
Octave:
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
This works in Matlab, but in Octave I get an analogous error to the one
reported in this thread:
x = testL()
error: no such file, 'testL.m'
[ I apologize if adding another example is not useful and just adds noise ]
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?52582>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52582] Dependent constant properties in classdef errors: no such file,
avlas <=