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

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

[Octave-bug-tracker] [bug #42620] exist() does not use "class" argument


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #42620] exist() does not use "class" argument
Date: Fri, 19 Nov 2021 22:26:12 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #5, bug #42620 (project octave):

Maybe we just need a function that can extract the first token from a .m file.
 If it is CLASSDEF, then return 8, otherwise 2?

We could check whether Matlab does this or actually parses the file and
requires it to be a valid classdef file by creating a file that has syntax
errors after the initial classdef token.  If it still returns 8 with the
syntax errors, we probably just need to check for the initial token value. 
Otherwise, we may need to parse the entire file and only return 8 if the
classdef file can be parsed without error.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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