Component Programming example
Jonathan A Dunlap
jdunlap at outlook.com
Fri Aug 2 09:59:12 PDT 2013
The example:
http://www.drdobbs.com/architecture-and-design/component-programming-in-d/240008321?pgno=4
import std.stdio;
import std.array;
import std.algorithm;
void main() {
stdin.byLine(KeepTerminator.yes) // 1
map!(a => a.idup). // 2
array. // 3
sort. // 4
copy( // 5
stdout.lockingTextWriter()); // 6
}
I don't understand what happens to the output. On windows, I can
keep entering lines but no output gets displayed. Also, can
someone explain a bit more about lockingTextWriter?
Thanks!
More information about the Digitalmars-d-learn
mailing list