Range interface for std.serialization

Jacob Carlborg doob at me.com
Wed Sep 25 00:55:48 PDT 2013


On 2013-09-24 22:27, Dmitry Olshansky wrote:

> Indeed. But it must be provided as a template in generic serializer. The
> benefit is that said logic to serialize arbitrary UDTs is implemented
> there once and for all. Archiver is then partially relived of it. To
> achieve that an archiver may need to provided some fundamental "hooks"
> like  startStruct/endStruct (I didn't think through exact ones).

Ok, that's basically how it already works. Thanks.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list