changeset 310:7ca3f26319f1

System.out.println and interface CharSequence
author Frank Benoit <benoit@tionex.de>
date Tue, 26 Aug 2008 02:47:19 +0200
parents dc2ae028d2d8
children 77fa7f3ab37e
files dwt/dwthelper/System.d dwt/dwthelper/utils.d
diffstat 2 files changed, 24 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/dwthelper/System.d	Fri Aug 22 21:36:05 2008 +0200
+++ b/dwt/dwthelper/System.d	Tue Aug 26 02:47:19 2008 +0200
@@ -167,15 +167,29 @@
     public static void setProperty ( String key, String value ) {
         /* set property for local dwt keys */
         if (key[0..3] == "dwt") {
-            if (key !is null && value !is null) 
+            if (key !is null && value !is null)
                 localProperties[ key ] = value;
         /* else set properties for global system keys (environment) */
         } else {
-        
+
         }
 
     }
 
+    class Output {
+        public void println( String str ){
+            implMissing( __FILE__, __LINE__ );
+        }
+    }
+
+    public static Output out__;
+    public static Output out_(){
+        if( out__ is null ){
+            out__ = new Output();
+        }
+        return out__;
+    }
+
     private static String[String] localProperties;
 }
 
--- a/dwt/dwthelper/utils.d	Fri Aug 22 21:36:05 2008 +0200
+++ b/dwt/dwthelper/utils.d	Tue Aug 26 02:47:19 2008 +0200
@@ -4,6 +4,7 @@
 module dwt.dwthelper.utils;
 
 public import dwt.dwthelper.System;
+public import dwt.dwthelper.Runnable;
 public import Math = tango.math.Math;
 
 public import tango.core.Exception : IllegalArgumentException, IOException;
@@ -1108,3 +1109,10 @@
     const ImportData getImportData = ImportData( import(name), name );
 }
 
+interface CharSequence {
+    wchar           charAt(int index);
+    int             length();
+    CharSequence    subSequence(int start, int end);
+    String          toString();
+}
+