std.serialization: pre-voting review / discussion
ilya-stromberg
ilya-stromberg-2009 at yandex.ru
Thu Aug 22 12:30:13 PDT 2013
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.
More information about the Digitalmars-d
mailing list