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: Max Görner
Subject: [Octave-bug-tracker] [bug #46553] Addpath shadows builtin functions without warning
Date: Fri, 27 Nov 2015 08:45:25 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

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

                 Summary: Addpath shadows builtin functions without warning
                 Project: GNU Octave
            Submitted by: maxg
            Submitted on: Fr 27 Nov 2015 08:45:24 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:

When I add directories to the search path using the "'-end'"-switch, addpath
shadows builtin functions without issuing a warning.

I'm on Ubuntu 15.10.


/tmp$ octave --no-gui --silent
>> addpath (genpath ('/tmp/ext'), '-end')
>> size
error: assert (false) failed
error: called from
    assert at line 92 column 11
    size at line 2 column 3
>> str2double
error: assert (false) failed
error: called from
    assert at line 92 column 11
    str2double at line 2 column 3
>>
/tmp$


The functions size and str2double in /tmp/ext only contain an assertion.

Since I have to deal with some projects containing their own versions of
essential functions (thanks Mathworks), I use the "'-end'"-switch to prevent
shadowing. If it can't be avoided, a warning would be great.

sincerely




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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