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

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

[Octave-bug-tracker] [bug #54941] interpreter cannot find methods in fil


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #54941] interpreter cannot find methods in files of classdefs in packages
Date: Sun, 4 Nov 2018 16:39:12 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

Follow-up Comment #2, bug #54941 (project octave):

adding a prototype in +pckg/Myclass.m for report_pi helps, but shouldn't be
necessary I guess:


classdef Myclass
   methods (Static)
      output = staticFunc1(arg1,arg2)
   end
   methods
     val = report_pi(obj)
   end
end


The discussion in https://savannah.gnu.org/bugs/?45444 is on functions in a
private subdir. But that is not necessary with classdefs where you can declare
the prototype of the private functions in a method (Access = private) block,
as per
https://nl.mathworks.com/help/matlab/matlab_oop/methods-in-separate-files.html

I don't think any of the patches and tests proposed there by amro made it to
the mercurial repository.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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