octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46553] Addpath shadows builtin functions with


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #46553] Addpath shadows builtin functions without warning
Date: Fri, 27 Nov 2015 12:38:44 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38

Update of bug #46553 (project octave):

                Severity:              3 - Normal => 2 - Minor              
              Item Group:                   Other => Matlab Compatibility   
                  Status:                    None => Confirmed              
                 Release:                   4.0.0 => dev                    

    _______________________________________________________

Follow-up Comment #1:

Matlab (r2014a) does warn when paths added using addpath shadow builtins (I
tried with sin()), unlike Octave (also development version) => confirmed.

Note that str2double is a builtin in Octave but an .m-file function in Matlab
- hence your addpath() trick may work with Matlab (although I don't follow)
but not with Octave.

BTW, If I've interpreted your explanation correctly I would blame the creators
of your projects rather than The Mathworks. Shadowing core functions in
projects is rarely a Good Idea.
It is always possible to name functions along the lines of "str2double_1" or
"size_B"; at my work we have several "improved" Matlab functions named along
that principle.
As you're on Linux, a simple search & replace script recursing directories
could help you a lot.

I'll set Item Group to Matlab Compatibility and Severity to minor as there are
workarounds.
Status and Release also adapted.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46553>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]