On Sunday, 6 September 2015 at 10:12:39 UTC, BBasile wrote:
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...
So tell me how you expect to read a stream containing mixed data
types...