[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OOP load update
From: |
WMennerich |
Subject: |
Re: OOP load update |
Date: |
Tue, 5 May 2009 13:57:21 -0700 (PDT) |
Hello,
Matlab object loading using mat-files works like this:
The zero-args-case in the constructor is only needed, if you want to load
objects which class is not 'defined' within the current matlab session.
'Defined class' means here, that you have at least crated one object of the
class, using the constructor with the NON-zero-args-case.
The class stays 'defined', even if you delete all its objects.
If you run 'clear classes', the knowledge about the class is away and you
are no more able to load an object using a matfile if the constructor for
that class has not a 'zero-args-case'.
Matlab cares only about the first tier of fields of the classes because the
content of these fields is not fixed. That means that
a.b=0
a.c=0
and
d.b.f=0
d.c=0
are two structures 'a' and 'd' which give the 'same' class in matlab
Regards, Wolfgang
--
View this message in context:
http://www.nabble.com/OOP-load-update-tp23392602p23395807.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- OOP load update, Robert T. Short, 2009/05/05
- OOP load update, John W. Eaton, 2009/05/05
- Re: OOP load update, Robert T. Short, 2009/05/05
- Re: OOP load update,
WMennerich <=
- Re: OOP load update, Robert T. Short, 2009/05/05
- Re: OOP load update, John W. Eaton, 2009/05/05
- Re: OOP load update, Robert T. Short, 2009/05/05
- Re: OOP load update, John W. Eaton, 2009/05/05
- Re: OOP load update, Judd Storrs, 2009/05/05
- Re: OOP load update, Judd Storrs, 2009/05/05