std.serialization: pre-voting review / discussion
mrd
denis.feklushkin at gmail.com
Sat Sep 21 06:13:43 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 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.
Is this the right way?
There are special formats (Protocol Buffers, for example) for a
binary format what can be changed over time without breaking old
code.
But for normal serialization is not this redundant?
Besides, search by name slower compared with other methods (field
numbers, for example).
More information about the Digitalmars-d
mailing list