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

 
 

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

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Mon 04 Apr 2016 08:21:57 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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

Mike Miller <mtmiller>
Group Member
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>
Group Member

 

(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 avinoam (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-04-04 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #46849

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code