bugGNU Octave - Bugs: bug #54658, Private directory in +package


bug #54658: Private directory in +package

Submitter:  Guillaume <gyom>
Submitted:  Thu 13 Sep 2018 04:19:41 PM UTC
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 29 Apr 2020 07:15:54 PM UTC, comment #5: 

As mentioned on the maintainers mailing list, this is now working in dev:
I hadn't noticed - thanks jwe!

Guillaume <gyom>
Mon 25 Mar 2019 11:15:37 AM UTC, comment #4: 

The bug is still present. This report was closed as a duplicate of bug #45444, which is itself now closed as fixed. Would it be possible to reopen this report?

Guillaume <gyom>
Fri 14 Sep 2018 09:23:11 AM UTC, comment #3: 

Thanks Mike; it's the second time you point bug #45444 to me, I didn't find it as I made a search with the 'package' keyword instead of 'namespace'...
So, yes, same concern than in bug #45444; this other bug report also describe similar issues with classdef. I would guess they require independent fixes though.

Guillaume <gyom>
Thu 13 Sep 2018 07:01:29 PM UTC, comment #2: 

I'm pretty sure this is a duplicate of open bug #45444, can you take a look at the discussion and examples there and confirm that this is about the same issue?

Mike Miller <mtmiller>
Group Member
Thu 13 Sep 2018 06:46:34 PM UTC, comment #1: 

I thought that maybe this had to do with the need to use mypkg before the function name, such as in calling mypkg.myfcn2 below. However mypkg.myprivatefcn doesn't work either. However the following runs successfully in matlab if and only if mypkg is not before the private function call.

function myfcn ()
    disp ("myfcn");

function myfcn2 ()
    disp ("myfcn2");
    myprivatefcn ();

function myprivatefcn ()
    disp ("myprivatefcn");

Marshall <marsian>
Thu 13 Sep 2018 04:19:41 PM UTC, original submission:  

Functions in a private directory of a +package cannot be called:

├── myfcn.m
└── private
    └── myprivatefcn.m

function myfcn ()
    disp ("myfcn");
    myprivatefcn ();

function myprivatefcn ()
    disp ("myprivatefcn");

octave:1> mypkg.myfcn ()
error: 'myprivatefcn' undefined near line 3 column 5
error: called from
    myfcn at line 3 column 5

Guillaume <gyom>


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

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-29 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2019-03-25 siko1056 StatusDuplicate Confirmed
        Open/ClosedClosed Open
    2018-09-19 mtmiller Carbon-CopyRemoved 80942 -
    2018-09-14 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #45444

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code