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

[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: Rik
Subject: [Octave-bug-tracker] [bug #59304] exist() does not find a class inside @class directory
Date: Fri, 30 Oct 2020 11:07:20 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

Follow-up Comment #11, bug #59304 (project octave):

Thank you Ray for testing.

The exist function has a really complicated hierarchy for which value it
returns when something matches multiple categories.  In this case, it would
appear that higher number return values are prioritized over lower ones.  So a
return value of 2 which indicates NAME is a file takes precedence over a
return value of 8 which indicates NAME is a class.  Only when you specify that
you want to restrict testing to a specific type ("class") does it ignore the
file return code and return 8.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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