|
From: | Marc Dirix |
Subject: | [Octave-bug-tracker] [bug #50452] Octave is not resolving class functions in +package folder |
Date: | Sat, 4 Mar 2017 03:22:36 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?50452> Summary: Octave is not resolving class functions in +package folder Project: GNU Octave Submitted by: dirixmjm Submitted on: Sat 04 Mar 2017 08:22:35 AM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 4.2.1 Operating System: Microsoft Windows _______________________________________________________ Details: If I create the following class (from the documentation) @polynomial/polynomial.m @polynomial/display.m I am able to use the class as: >> p = polynomial([-1 0 1]) p = - 1 + X ^ 2 >> display(p) p = - 1 + X ^ 2 However, if I put this in a +package as follows: +foo/@polynomial/polynomial.m +foo/@polynomial/display.m Then the function "display.m" is not resolved. >> p = polynomial([-1 0 1]) p = <class polynomial> >> display(p) p = <class polynomial> If I insert the display function inside the polynomial.m file it is once more resolved correctly. So in effect it doesn't register the location of the class correctly. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50452> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |