bugGNU Octave - Bugs: bug #48390, Unnecessary "shadows a...

 
 

bug #48390: Unnecessary "shadows a built-in function" warning for packages

Submitter:  None
Submitted:  Sun 03 Jul 2016 04:04:36 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Joel Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.2
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 03 Jul 2016 04:20:53 PM UTC, comment #1: 

Thank you for taking the time to report this bug. This issue has already been noticed and reported, so closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Sun 03 Jul 2016 04:04:36 PM UTC, original submission:  

I am getting warnings of the following type in Octave (but not in MATLAB):

warning: function ./+pointer_reference/get.m shadows a built-in function
warning: function ./+pointer_reference/set.m shadows a built-in function
warning: function ./+template_partial_specialization/I.m shadows a built-in function
warning: function ./+template_partial_specialization/J.m shadows a built-in function
warning: function ./+template_partial_specialization_typedef/I.m shadows a built-in function
warning: function ./+template_partial_specialization_typedef/J.m shadows a built-in function
warning: function ./+typedef_sizet/size.m shadows a built-in function

I don't see why shadowing a built-in function inside a +package would be bad. Since there always has to be a prefix (especially since Octave doesn't implement MATLAB's "import"), I don't see how there could be any ambiguity.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-03 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #46849

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code