bugGNU Octave - Bugs: bug #62163, private functions should not be...

 
 

bug #62163: private functions should not be available to each other

Submitter:  None
Submitted:  Thu 10 Mar 2022 10:40:35 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Mar 2022 03:19:45 PM UTC, comment #3: 

Closing as invalid.

John W. Eaton <jwe>
Group administrator
Thu 10 Mar 2022 01:08:00 PM UTC, comment #2: 

it seems matlab does allow private functions to
call their "siblings" ...

With the attached test I see the following on R2019b


>> version

ans =

    '9.7.0.1296695 (R2019b) Update 4'

>> pippo
I am pippo.m
calling topolino ...
I am topolino.m
calling minnie ...
I am minnie.m
calling topolino
I am topolino.m
>>


(file #52976)

Carlo de Falco <cdf>
Group Member
Thu 10 Mar 2022 11:48:27 AM UTC, comment #1: 

I think we need someone to test this in Matlab.

I'd be surprised if two functions in the same private directory can not call each other.

Also changing the release to "dev" since regardless of what Matlab does, this behavior is not going to change in Octave for the version 7 release.

John W. Eaton <jwe>
Group administrator
Thu 10 Mar 2022 10:40:35 AM UTC, original submission:  

Currently functions in private folder are accessible to each other while the MATLAB documentation says that:[1]

> The [private] function is available only to functions and scripts in the folder immediately above the private subfolder.


Note that I haven't tested it on MATLAB.

[1] https://www.mathworks.com/help/matlab/matlab_prog/private-functions.html

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #52976:  pippo.zip added by cdf (998B - application/zip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cdf (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-10 jwe StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2022-03-10 cdf Attached File- Added pippo.zip, #52976
    2022-03-10 jwe StatusNone Need Info
        Release7.0.90 dev

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code