std.Stream.InputStream convenience functions

BBasile via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 6 14:33:34 PDT 2015


On Sunday, 6 September 2015 at 20:17:32 UTC, bitwise wrote:
> On Sunday, 6 September 2015 at 20:05:20 UTC, BBasile wrote:
>> On Sunday, 6 September 2015 at 18:52:34 UTC, bitwise wrote:
>>> [...]
>>
>> You should have got that's even not what i was talking about.
>> Basic summary of the conversation:
>>
>> - you: hello what do you thing about my helpers functions?
>> - others: nothing, we won't add this because streams are 
>> deprecated. Maybe they'll come back one day if someone comes 
>> with a kind of "rangified" stream solution.
>> - you: how can I "rangify" a stream ?
>> - me: hello, you can add the ranges primitives.
>> - you: yes but it doesn't work for my particular case.
>> - me: (sigh) I know, I was talking about how streams can be 
>> rangified in a general way.
>>
>> I think that the misunderstanding happens after 'others' 
>> intervention: 'other' did not suggested that your helper 
>> functions can be made in the "Range" fashion.
>
> The problem is, that you are concerned with who said what 
> instead of addressing the problem.
>
> The point is, streams can contain mixed data types. Any adopted 
> solution should address this, and you haven't presented one.
>
> I believe something like this could work:
>
> http://dpaste.dzfl.pl/5f0ee693631a

I don't care about your problem, adding some type-specific 
readers & writers is quite straight forward and the solution you 
proposed initially is Ok.

But...at a particular point you asked how Streams can be 
rangified. That was the only reason why i posted here. Roger this 
?


More information about the Digitalmars-d mailing list