Adding a read primitive to ranges

Freddy via Digitalmars-d digitalmars-d at puremagic.com
Sun May 3 17:07:25 PDT 2015


Would it be a bad idea to add a read primitive to ranges for 
streaming?
----
struct ReadRange(T){
     size_t read(T[] buffer);
     //and | or
     T[] read(size_t request);

     /+ empty,front,popFront,etc +/
}
----


More information about the Digitalmars-d mailing list