bugGNU Octave - Bugs: bug #47622, "warning: function shadows a...

 
 

bug #47622: "warning: function shadows a built-in function" in +folder

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Mon 04 Apr 2016 08:21:57 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: DuplicateAssigned to: None
Originator Name: AvinoamOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 04 Apr 2016 09:47:30 PM UTC, comment #1:

Thanks, this has already been reported as bug #46849.

Mike Miller <mtmiller>
Project Administrator
Mon 04 Apr 2016 08:21:57 PM UTC, original submission:

Using mexopencv,
after addpath ('C:\mexopencv') I get in Octave 4.0.1+ (development branch) the following warnings

warning: function .+cv\glob.m shadows a built-in function
warning: function .+cv\norm.m shadows a built-in function
warning: function .+cv\resize.m shadows a built-in function

after reporting this in mexopencv (https://github.com/kyamagu/mexopencv/issues/239),
it seems that the problem is with Octave implementation of namespace functions. Since norm is in +cv forlder,
cv.norm refers to +cv\norm.m and norm refers to Octave's norm,
and there is no shadowing of built-in function
(see that discussion there).

Note that only root folder is added to the path and not +cv, (which cannot be added). Note also that Octave does not recognize functions in mexopencv\+cv\private (bug #45444).

Avinoam Kalma <avinoam>
Project Member

 

(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 avinoam (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
    Mon 04 Apr 2016 09:47:30 PM UTCmtmillerStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #46849

    Back to the top


    Powered by Savane 3.1-cleanup1