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

Reply via email to