octave-maintainers
[Top][All Lists]
Advanced

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

Re: saveing/loading symbol table of annymous functions


From: David Bateman
Subject: Re: saveing/loading symbol table of annymous functions
Date: Wed, 18 Apr 2007 01:12:35 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

John W. Eaton wrote:
> On 18-Apr-2007, David Bateman wrote:
> 
> | I hesitate to check it in just yet, as in the process of figuring out
> | how matlab saves function handles, it also saves information on the path
> | to the non anonymous function handles.
> | 
> | However, I have a problem in that  the matlab function handle is of the form
> | 
> | handle -> object/class ->  string (matlabroot)
> |                        ->  string (seperator)
> |                    ->  string (sentinel)
> |                    ->  object/class (function handle workspace)
> | 
> | The object is the format matlab uses to save classes and is just a
> | special form of a structure when it is saved. So implementing matlab
> | load/saving of function handles needs at least a partial implementation
> | of matlab classes, or at least a way of treating them in mat-files. This
> | issue has stopped me from looking at the other issue of saving the path
> | to the non anonymous function handles in octave native formats..
> 
> OK, then let's just delay saving and loading function handles until
> after 3.0.  But if it is reasonably easy, we should probably not fail
> if a .mat file contains them, and we should certainly not fail when
> trying to save them (I think we should just warn and skip the
> variable).
> 
> jwe
> 
> 

I think I can probably have saving/loading function handles work in
matlab files by implementing loading/saving of objects, but only
allowing it in a function handle by using a global variable to flag
function handles in ls-mat5.cc. Its just a matter of finding the time to
do it.. Yeah perhaps it'll be after 3.0 for the mat-files, but it really
should be fixed for the octave native formats as the current state of
the loading/saving is just broken. I just want to understand fully what
matlab is doing so as not to have to change the code once again in the
future...

mat-files that have function handles or objects currently load correctly
with a warning about skipping the untreated variables.

D.


reply via email to

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