std.stream for stdin?

dsimch dsimcha at yahoo.com
Fri Jul 11 10:25:20 PDT 2008


How is this class supposed to be used?  I wrote a simple test program, and it
appears not to work the way other subclasses of Stream work.  Here's the test
program, which should just copy stdin to stdout, but seems to do absolutely nothing.

void main () {
   foreach(char[] line; din) {
       writefln(line);
   }
}

Similar results occur when I use the readLine method.


More information about the Digitalmars-d-learn mailing list