# HG changeset patch # User Frank Benoit # Date 1219711639 -7200 # Node ID 7ca3f26319f1909f9801e0d7d16cd6088aef324d # Parent dc2ae028d2d89e097b20ed6d2c493af311a12be5 System.out.println and interface CharSequence diff -r dc2ae028d2d8 -r 7ca3f26319f1 dwt/dwthelper/System.d --- 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; } diff -r dc2ae028d2d8 -r 7ca3f26319f1 dwt/dwthelper/utils.d --- 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(); +} +