comparison orange/util/io.d @ 11:27c5b6c5425f 0.0.1

Deserialization now works as well using D2. Compiles again with D1 and Tango. Cleaned up orange.util.io a bit.
author Jacob Carlborg <doob@me.com>
date Sun, 25 Jul 2010 13:25:55 +0200
parents 99c52d46822a
children
comparison
equal deleted inserted replaced
10:d17ae98330bf 11:27c5b6c5425f
37 Stdout.format(fmt[0 .. args.length * 2], args).flush; 37 Stdout.format(fmt[0 .. args.length * 2], args).flush;
38 } 38 }
39 39
40 40
41 else 41 else
42 foreach(t ; a) 42 write(args);
43 write(t);
44 } 43 }
45 44
46 /** 45 /**
47 * Print to the standard output, adds a new line 46 * Print to the standard output, adds a new line
48 * 47 *
61 60
62 Stdout.formatln(fmt[0 .. args.length * 2], args); 61 Stdout.formatln(fmt[0 .. args.length * 2], args);
63 } 62 }
64 63
65 else 64 else
66 { 65 writeln(args);
67 foreach(t ; args)
68 write(t);
69
70 write("\n");
71 }
72 } 66 }