Mercurial > projects > dwt2
comparison base/src/java/lang/System.d @ 105:bbe49769ec18
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Nov 2009 12:42:30 +0100 |
parents | 6be48cf9f95c |
children | 9f4c18c268b2 |
comparison
equal
deleted
inserted
replaced
104:88652073d1c2 | 105:bbe49769ec18 |
---|---|
3 */ | 3 */ |
4 module java.lang.System; | 4 module java.lang.System; |
5 | 5 |
6 import java.lang.util; | 6 import java.lang.util; |
7 import java.lang.exceptions; | 7 import java.lang.exceptions; |
8 import java.io.PrintStream; | |
8 | 9 |
9 version(Tango){ | 10 version(Tango){ |
10 static import tango.sys.Environment; | 11 static import tango.sys.Environment; |
11 static import tango.core.Exception; | 12 static import tango.core.Exception; |
12 static import tango.io.model.IFile; | 13 static import tango.io.model.IFile; |
227 | 228 |
228 } | 229 } |
229 | 230 |
230 } | 231 } |
231 | 232 |
232 static class Output { | 233 private static PrintStream err__; |
233 public void println( String str ){ | 234 public static PrintStream err(){ |
234 implMissing( __FILE__, __LINE__ ); | |
235 } | |
236 } | |
237 | |
238 private static Output err__; | |
239 public static Output err(){ | |
240 if( err__ is null ){ | 235 if( err__ is null ){ |
241 err__ = new Output(); | 236 err__ = new PrintStream(null); |
242 } | 237 } |
243 return err__; | 238 return err__; |
244 } | 239 } |
245 private static Output out__; | 240 private static PrintStream out__; |
246 public static Output out_(){ | 241 public static PrintStream out_(){ |
247 if( out__ is null ){ | 242 if( out__ is null ){ |
248 out__ = new Output(); | 243 out__ = new PrintStream(null); |
249 } | 244 } |
250 return out__; | 245 return out__; |
251 } | 246 } |
252 | 247 |
253 private static String[String] localProperties; | 248 private static String[String] localProperties; |