octave-maintainers
[Top][All Lists]
Advanced

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

Fwd: Re: saving function handles


From: John W. Eaton
Subject: Fwd: Re: saving function handles
Date: Wed, 06 Feb 2013 19:20:20 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

Oops, I forgot to copy this one to the list too.


-------- Original Message --------
Subject: Re: saving function handles
Date: Tue, 29 Jan 2013 10:57:02 -0500
From: John W. Eaton <address@hidden>
To: gdudziuk <address@hidden>
CC: address@hidden

On 01/29/2013 05:54 AM, gdudziuk wrote:
I have the same problem.
But what about NOT saving the path at all? Then it would require a
modification of the load function, instead of the save function.

When you define a handle, you do not specify any path, you simply write "f =
@foo" and the job is done (assuming that the search path for Octave is
properly defined, e.g. in .octaverc file). So maybe it would be a nice
solution to save only the info that the value of the handle "f" is equal to
"@foo" and move the task of proper identifying the function "foo" to the
load function and debit the user with the responsibility of defining the
proper search path for his code.

Does Matlab require that the ordering of the path is the same when
loading the function in order to load the same function?  If not, then
saving the path (or at least part of it) is needed to determine which
one should be loaded because there can be multiple functions in the path
that have the same name.

jwe



reply via email to

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