octave-maintainers
[Top][All Lists]
Advanced

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

Re: OOP and load/save


From: Robert T. Short
Subject: Re: OOP and load/save
Date: Thu, 23 Apr 2009 07:09:16 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16

John W. Eaton wrote:
On 22-Apr-2009, Robert T. Short wrote:

| John W. Eaton wrote:
| > On 22-Apr-2009, Robert T. Short wrote:
| >
| > | I hadn't thought of that. Good question and the answer is that there is | > | no guarantee. In fact, some of my "real" classes require arguments. | > | | > | I think I have to go back to the drawing board on this. | >
| > I suggest that you try saving and reloading one of those classes
| > (preferably one with a parent class) in Matlab and see what happens.
| > Does it work?
| >
| > jwe
| >
| >
| > | Yes it works, but it occurs to me that I hadn't checked to see if all | the DETAILS worked right.

Did you try it to see what happens when a constructor requires an
argument?

jwe


I tried a bunch of stuff last night including the argument case. MATLAB gets it right every time. I walked through a .mat file with both the aggregation and inheritance case and there is nothing in the file that tells which it is, so somehow MATLAB figures it out from the sources or something. Somebody over at the Mathworks is smarter than I am.

I doubt I will really be able to spend enough time before the weekend to make a real impact, but I will eyeball your diff and the stuff you sent out yesterday.

I think I have a workable short term solution. I will type that up as soon as I can. I can get that implemented and at least we will have a complete solution, if a little imperfect.

Bob


reply via email to

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