std.Stream.InputStream convenience functions
BBasile via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 6 03:12:37 PDT 2015
On Sunday, 6 September 2015 at 04:48:56 UTC, bitwise wrote:
> On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote:
>> [...]
>> auto rng = StreamRange!(MemoryStream,long)(instance);
>> auto rng = StreamRange!(FileStream,float)(instance);
>> ---
>>
>> Actually I have nothing against your helper functions (except
>> that they don't make Streams compatible with std.algorithm
>> functions).
>
> Same problem... StreamRange(...) assumes that all data in the
> stream is of the same type.
>
> -Bit
So Ranges are...
More information about the Digitalmars-d
mailing list