Best way to save/load an object to file?

Saaa empty at needmail.com
Fri Jun 20 11:21:38 PDT 2008


Lol, I think I'm not really that good a magician :)

A box model would suffice I think:
box class 1{
auto colors[]=fruitsClass.colors[];
..
..
}

save box to file
--
load box from file would set all values.

Are there boxes like this?

>
> It might be possible to generate a generic save device using tuple of and 
> some magic to detect and deal with references (convert them to file 
> references with some caching and delayed output to deal with loops and 
> whatnot)
>
> <joke> I could show you how to do this, but then the knowledge would kill 
> you </joke>
> 




More information about the Digitalmars-d-learn mailing list