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

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

[Octave-bug-tracker] [bug #47763] saving a function handle to user funct


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47763] saving a function handle to user function saves full path
Date: Fri, 22 Apr 2016 17:36:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Update of bug #47763 (project octave):

                  Status:                    None => Need Info              
                 Summary: Loading a function handle variable from a MAT-file
=> saving a function handle to user function saves full path

    _______________________________________________________

Follow-up Comment #2:

Confirmed here. The octave_fcn_handle::load_... and
octave_fcn_handle::save_... functions store the full path to the function
file, and restore it when loaded. It sounds like Matlab only stores the short
name to the function file and does a lookup on the current load path, whether
it's the same actual function file or not doesn't matter.

Can you also test on Matlab with a user function that shadows a core function
file and one that shadows a builtin? I don't have access to Matlab so I don't
know for sure what are builtins, but I would guess "plot" is a function file,
and probably "quit" is a builtin. The same tests would be useful, load when
the m-file is in the same directory, when the directory is removed from the
load path, and when the file is moved to a different directory in the load
path.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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