std.serialization: pre-voting review / discussion
Jacob Carlborg
doob at me.com
Thu Aug 22 06:13:47 PDT 2013
On 2013-08-22 13:57, ilya-stromberg wrote:
> Can std.serialization load data if class definition was changed?
>
> For example, we have class "Foo":
>
> class Foo
> {
> int a;
> int b;
> }
>
> and we serialize it in some file. After that class "Foo" was changed:
>
> class Foo
> {
> int b;
> int a;
> }
>
> Can std.serialization load data from old file to the new class?
Yes. In this case it will use the name of the instance fields when
searching for values in the archive.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list