"Ma object serialization" was designed for this purpose.  You simply
override #maTransientVariables to answer an array of the variable
names that are transient.  That part of the graph will not be
traversed during serialization and nil will be stored in its place.



On Tue, Sep 15, 2009 at 8:31 AM, Simon Denier <[email protected]> wrote:
> Hi folks
>
> I'm looking at the code and comments of ReferenceStream for object
> serialization and I wonder what is the best strategy to serialize a
> partial model. I mean, I want to store all elements found while
> traversing the graph of the model, but I dont want to store some
> attributes of those elements (i.e., transient attributes).
>
> Any sample?
>
> --
>  Simon
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to