Mercurial > projects > dwt-linux
diff dwt/dwthelper/System.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 9b4e6fc63930 |
children | da992144273f |
line wrap: on
line diff
--- a/dwt/dwthelper/System.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/dwthelper/System.d Mon May 05 00:42:55 2008 +0200 @@ -3,6 +3,8 @@ */ module dwt.dwthelper.System; +import dwt.dwthelper.utils; + import tango.core.Exception; import tango.time.Clock; import tango.stdc.stdlib : exit; @@ -115,7 +117,7 @@ alias SimpleType!(ushort[]).arraycopy arraycopy; alias SimpleType!(ubyte[]).arraycopy arraycopy; alias SimpleType!(ulong[]).arraycopy arraycopy; - alias SimpleType!(char[]).arraycopy arraycopy; + alias SimpleType!(String).arraycopy arraycopy; alias SimpleType!(wchar[]).arraycopy arraycopy; alias SimpleType!(Object[]).arraycopy arraycopy; alias SimpleType!(void*[]).arraycopy arraycopy; @@ -135,7 +137,7 @@ return (*cast(Object *)&x).toHash(); } - public static char[] getProperty( char[] key ){ + public static String getProperty( String key ){ switch( key ){ case "os.name": return "linux"; default: return null;