bugGNU Octave - Bugs: bug #54941, interpreter cannot find methods in...

 
 

bug #54941: interpreter cannot find methods in files of classdefs in packages

Submitted by:  A.R. Burgers <arb>
Submitted on:  Fri 02 Nov 2018 06:55:06 PM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.4.1 Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 04 Nov 2018 09:39:11 PM UTC, comment #2:

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

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.

A.R. Burgers <arb>
Sat 03 Nov 2018 09:14:30 AM UTC, comment #1:

Is this one of the many cases reported in bug #45444?

Guillaume <gyom>
Fri 02 Nov 2018 06:55:06 PM UTC, original submission:

consider the hierarchy below with the same functions and methods and definition for Myclass and pckg.Myclass.

Executing test_Myclass.m with octave (stable and dev) gives this error message

the report_pi method is not found in package +pckg.
Remarkably the static function is found in both cases.
The function definitions are below:

A.R. Burgers <arb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3