diff dwt/dwthelper/utils.d @ 200:fef1e3b37378

sync with dwt-linux
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 17:15:55 +0200
parents 3d5dbb27dec2
children 6293c40673a4
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d	Fri Apr 11 01:26:13 2008 +0200
+++ b/dwt/dwthelper/utils.d	Fri Apr 11 17:15:55 2008 +0200
@@ -72,6 +72,11 @@
 class Boolean : ValueWrapperT!(bool) {
     public static Boolean TRUE;
     public static Boolean FALSE;
+
+    static this(){
+        TRUE  = new Boolean(true);
+        FALSE = new Boolean(false);
+    }
     public this( bool v ){
         super(v);
     }
@@ -125,8 +130,7 @@
     }
 
     public this ( char[] s ){
-            implMissing( __FILE__, __LINE__ );
-            super(0);
+        super(parseInt(s));
     }
 
     public static char[] toString( int i, int radix ){
@@ -185,13 +189,11 @@
     }
 
     public static Integer valueOf( char[] s ){
-        implMissing( __FILE__, __LINE__ );
-        return null;
+        return valueOf( parseInt(s));
     }
 
     public static Integer valueOf( int i ){
-        implMissing( __FILE__, __LINE__ );
-        return null;
+        return new Integer(i);
     }
 
     public byte byteValue(){
@@ -861,6 +863,7 @@
             }
         }
     }
+    return true;
 }
 
 class Arrays{