|
| From: | John W. Eaton |
| Subject: | [Octave-bug-tracker] [bug #55975] shadowed package functions result in incorrect calls |
| Date: | Thu, 21 Mar 2019 15:14:29 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?55975>
Summary: shadowed package functions result in incorrect calls
Project: GNU Octave
Submitted by: jwe
Submitted on: Thu 21 Mar 2019 07:14:27 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: jwe
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Given a directory layout like
top/foo.m
top/+pkga/+pkgb/foo.m
and the current directory for Octave in "top", calling the function
pkga.pkgb.foo ()
calls the top-leve function foo instead of the one defined in the package
directory. This also happens when the function is called through a functio
handle. The same result occurs for classdef static methods.
I'm working on a fix but wanted a bug report number for tests I'm adding to
the test suite.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55975>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |