Hello again, friends. Thanks for indulging all my beginner questions!
I’m trying to get my hands dirty with classes. From what I’ve read,
classdef classes are not currently implemented in a usable way (e.g. Classdef - Octave), so I’m starting out with old-style classes instead. (Please correct me if I’m mistaken… I’d love to use
classdef classes, but it just sounds like that would be a frustrating and futile exercise?)
I’m using Octave 6.3.0 GUI on Windows.
Here’s my first question: is there a way to get Octave to see new methods immediately when I create them? Or, if that’s not possible, how can I ask Octave to rescan the load path? With non-class functions and scripts, I find that Octave seems to be automatically scanning my load path all the time, so that if I create a new function it becomes usable immediately, but this doesn’t seem to be the case for methods of classes.
I am putting my class source code in
A:\Documents\octave\classes, which is in my load path. The methods that existed when I invoked Octave are visible, but any new ones that I’ve created since starting my session don’t get loaded. I’ve tried adding
A:\Documents\octave\classes\@classname to the path, in which case it does immediately see the new methods, but this causes all sorts of other problems because it perceives them to be stand-alone functions rather than class methods.
Thanks again, and again I’m sorry for asking such basic questions.