octave-maintainers
[Top][All Lists]
Advanced

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

Re: Problem loading/saving of lists and structures.


From: Joao Cardoso
Subject: Re: Problem loading/saving of lists and structures.
Date: Thu, 16 Mar 2000 01:19:01 +0000

"Steven G. Johnson" wrote:
...

> Thus, the simplest thing to do in
> order to handle random new exotic types would be to supply a routine to
> convert the type into a standard Octave type (for example, a structure),
> supply a unique "tag" string for the variable so that the file knows it is
> not an ordinary instance of that type, and supply a routine for converting
> back.

I think that this is fine. After all, if someone is having all the
trouble to create a new datatype, (s)he only need to write two more
functions, which is certainly simple.

In a certain way, people using structures or list have already posted
script files that do exactly this. And my C++ approach do exactly the
same.

What are the drawbacks of this approach?

> For formats like MATLAB where one doesn't have much control, one is going
> to need special-case code in any case to recognize "special" types like

That is not a problem, there is already a working (?) patch on the list
:-)

Joao

> Steven



reply via email to

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