[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59304] exist() does not find a class inside @
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory |
Date: |
Thu, 29 Oct 2020 14:56:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #4, bug #59304 (project octave):
Right, but ftp.m is not directly on the path.
The solution used by "which" is to attempt to load the function and then check
whether that was successful. But then that fails with an error if the file
has syntax errors, which I believe is incorrect given the Matlab docs say that
does not examine the contents or internal structure of a file and relies
solely on the file extension for classification.
But what does that mean (in Matlab) for something like
exist foo class
if there is a file foo.m in the path? Does it check to see whether it is a
classdef file?
If file contents are not examined, then I suppose exist can't find
subfunctions, local functions, nested functions, or class methods defined in
classdef files (except constructors, which I guess aren't really methods).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59304>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59304] exist() does not find myclass inside @myclass directory, Ray Zimmerman, 2020/10/19
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/19
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, John W. Eaton, 2020/10/27
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Kai Torben Ohlhus, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory,
John W. Eaton <=
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, John W. Eaton, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Ray Zimmerman, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, John W. Eaton, 2020/10/29
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Ray Zimmerman, 2020/10/30
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/30
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Rik, 2020/10/30
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, Ray Zimmerman, 2020/10/30
- [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory, John W. Eaton, 2020/10/30