help-octave
[Top][All Lists]
Advanced

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

Re: Octave class search path problem


From: John Evans
Subject: Re: Octave class search path problem
Date: Wed, 26 Oct 2011 11:47:05 -0700 (PDT)

I find the error message that it is generating to be somewhat suspicious. The error that I'm receiving says,

error: no such file, `/baz/@foo/foo.m'

It's not able to find foo.m, because foo actually exists at 

/fooBar/@foo/foo.m

What I'm confused by is why it is looking for my class file at /baz/@foo/foo.m. Furthermore, it appears that it will always look for foo in the current directory, regardless of where I navigate. If I 

cd /some/random/directory 

then attempt to instantiate foo, it will result in an error message reading,

error: no such file, `/some/random/directory/@foo/foo.m'

Weird, huh?

--- On Wed, 10/26/11, Carnë Draug <address@hidden> wrote:

From: Carnë Draug <address@hidden>
Subject: Re: Octave class search path problem
To: "John Evans" <address@hidden>
Cc: "address@hidden" <address@hidden>
Date: Wednesday, October 26, 2011, 2:39 PM

2011/10/26 John Evans <address@hidden>
> Unfortunately, the actual code contains sensitive IP, however, I can post my contrived example. You can find the contents of /fooBar/@foo/foo.m as well as a small example of my problem at
> http://pastebin.com/ZD4TjMEg

The problem is in your IP then. It should work if you change your
object constructor to something like:

function x = foo()
        x = struct;
        x = class(x, "foo");
endfunction

Carnë

reply via email to

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