stream interfaces - with ranges

Mehrdad wfunction at hotmail.com
Fri May 18 08:40:24 PDT 2012


On Friday, 18 May 2012 at 13:44:43 UTC, Steven Schveighoffer 
wrote:
> On Fri, 18 May 2012 03:52:51 -0400, Mehrdad 
> <wfunction at hotmail.com> wrote:
>
>> On Thursday, 17 May 2012 at 14:02:09 UTC, Steven Schveighoffer 
>> wrote:
>>> 2. I realized, buffering input stream of type T is actually 
>>> an input range of type T[].
>>
>> The trouble is, why a slice? Why not an std.array.Array? Why 
>> not some other data source?
>> (Check/egg problem....)
>
> Well, because that's what i/o buffers are :)  There isn't an OS 
> primitive that reads a file descriptor into an e.g. linked list.


I beg to differ..

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365469.aspx


More information about the Digitalmars-d mailing list