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

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

[Octave-bug-tracker] [bug #57865] Builtin is not calling the built in ve


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #57865] Builtin is not calling the built in version
Date: Fri, 21 Feb 2020 10:46:14 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0

Update of bug #57865 (project octave):

                  Status:               Confirmed => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #6:

Functions in the current directory take precedence over functions in the
search path. If you know the path of the function you are shadowing, you could
cd to that directory, call the function, and cd back.

The following seems to work for me:

>> type xlim
xlim is the user-defined function defined from:
D:\Repositories\Octave\test\octave-2020-02-21-15-19-w64_terminal_colors2\octave-2020-02-21-15-19-w64
\xlim.m

function xlim (varargin)

disp ('test xlim shadowing')
olddir = cd (fullfile (getenv ('OCTAVE_HOME'), 'share\octave', ...
                       ver ('octave').Version, 'm\plot\appearance'));

xlim (varargin{:});

cd (olddir);

endfunction

>> xlim ([0 10])
test xlim shadowing
>>


Since this is how "builtin" is supposed to work in Octave, I'll close the
report as invalid.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57865>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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