std.serialization: pre-voting review / discussion

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Thu Aug 22 04:57:33 PDT 2013


On Sunday, 18 August 2013 at 19:46:00 UTC, Jacob Carlborg wrote:
> If versioning is crucial it can be added.

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?


More information about the Digitalmars-d mailing list