Range interface for std.serialization

Daniel Murphy yebblies at nospamgmail.com
Sun Aug 25 01:20:17 PDT 2013


"Dicebot" <public at dicebot.lv> wrote in message 
news:niufnloijwvjifusgisn at forum.dlang.org...
> On Thursday, 22 August 2013 at 17:39:19 UTC, Johannes Pfau wrote:
>> Yes, but the important point is that Serializer is _not_ an InputRange
>> of serialized data. Instead it _uses_ a OutputRange / Stream
>> internally.
>
> Shame on me. I have completely misunderstood you and though you want to 
> make serializer OutputRange itself.
>
> Your examples make a lot sense and I do agree it is a use case worth 
> supporting. Need some more time to imagine how that may impact API in 
> general.

It seems to me that if you give serializer a 'put' method, it _will_ be a 
valid output range. 




More information about the Digitalmars-d mailing list