Mercurial > projects > dwt-linux
diff dwt/dwthelper/utils.d @ 226:6da025bf255e
some fixes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 17:50:39 +0200 |
parents | 5366f8db1eda |
children | 4e6393f43231 |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Fri Apr 11 01:26:04 2008 +0200 +++ b/dwt/dwthelper/utils.d Fri Apr 11 17:50:39 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(){ @@ -844,6 +846,7 @@ } } } + return true; } class Arrays{