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

 
 

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

Submitted by:  None
Submitted on:  Sun 03 Jul 2016 04:04:36 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: JoelOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.2
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Jul 2016 04:20:53 PM UTCmtmillerStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #46849

    Back to the top


    Powered by Savane 3.1-cleanup1