On Thursday, 22 August 2013 at 13:13:48 UTC, Jacob Carlborg wrote:
On 2013-08-22 13:57, ilya-stromberg wrote:

Can std.serialization load data if class definition was changed?
Yes. In this case it will use the name of the instance fields when searching for values in the archive.

Great! What about more difficult cases? For example, we have:

class Foo
{
   int a;
   int b;
}

After changes we have new class:

class Foo
{
   long b;
}

Can std.serialization load data to new class from old file? It should ignore "a" and convert "b" from int to long.

Reply via email to