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

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

[Octave-bug-tracker] [bug #65045] [octave forge] (statistics) evalcluste


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #65045] [octave forge] (statistics) evalclusters demo fails
Date: Fri, 22 Dec 2023 18:33:24 -0500 (EST)

Follow-up Comment #1, bug#65045 (group octave):

same example code, different issue

Trying with both octave-7.2.1 and octave-8.4.0 in linux I get same error.

Issue is that the class in the private folder can not find the super class
(also in the private folder)

Small example:

myfunc.m

function x = myfunc()
  x = MyClass();
endfunction



private/MyClass.m

classdef MyClass < MySuper
  methods
    function this = MyClass()
      printf("MyClass\n");
    endfunction
  endmethods
endclassdef


private/MySuper.m

classdef MySuper
  methods
    function this = MySuper()
      printf("MySuper\n");
    endfunction
  endmethods
endclassdef


Running:

1> x = myfunc()
error: class not found: MySuper
error: called from
    <unknown>
    myfunc at line 2 column 5


If I move MySuper.m out of the private folder, it all works





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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