Mercurial > projects > dwt-mac
comparison dwt/dwthelper/System.d @ 134:623ff6db5f1d
Updated to Tango 0.99.8
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 24 May 2009 22:21:00 +0200 |
parents | 07399639c0c8 |
children |
comparison
equal
deleted
inserted
replaced
133:6541b60caf79 | 134:623ff6db5f1d |
---|---|
4 module dwt.dwthelper.System; | 4 module dwt.dwthelper.System; |
5 | 5 |
6 import tango.core.Exception; | 6 import tango.core.Exception; |
7 import tango.io.Stdout; | 7 import tango.io.Stdout; |
8 import tango.io.model.IFile; | 8 import tango.io.model.IFile; |
9 | 9 import tango.io.stream.Format; |
10 version (LDC) | |
11 { | |
12 import tango.io.stream.Format; | |
13 alias FormatOutput Print; | |
14 } | |
15 | |
16 else | |
17 import tango.io.Print; | |
18 | |
19 import tango.stdc.locale; | 10 import tango.stdc.locale; |
20 import tango.stdc.stdlib : exit; | 11 import tango.stdc.stdlib : exit; |
21 import tango.sys.Environment; | 12 import tango.sys.Environment; |
22 import tango.time.Clock; | 13 import tango.time.Clock; |
23 | 14 |
102 } | 93 } |
103 | 94 |
104 struct Out | 95 struct Out |
105 { | 96 { |
106 | 97 |
107 static Print!(char) delegate(char[] fmt,...) println; | 98 static FormatOutput!(char) delegate(char[] fmt,...) println; |
108 static Print!(char) delegate(char[] fmt,...) print; | 99 static FormatOutput!(char) delegate(char[] fmt,...) print; |
109 | 100 |
110 static this () | 101 static this () |
111 { | 102 { |
112 println = &Stdout.formatln; | 103 println = &Stdout.formatln; |
113 print = &Stdout.format; | 104 print = &Stdout.format; |
114 } | 105 } |
115 } | 106 } |
116 | 107 |
117 struct Err | 108 struct Err |
118 { | 109 { |
119 static Print!(char) delegate(char[] fmt,...) println; | 110 static FormatOutput!(char) delegate(char[] fmt,...) println; |
120 static Print!(char) delegate(char[] fmt,...) print; | 111 static FormatOutput!(char) delegate(char[] fmt,...) print; |
121 | 112 |
122 static this () | 113 static this () |
123 { | 114 { |
124 println = &Stderr.formatln; | 115 println = &Stderr.formatln; |
125 print = &Stderr.format; | 116 print = &Stderr.format; |