diff dwt/dwthelper/File.d @ 104:62a654ba5276

optimation of static ctors
author Frank Benoit <benoit@tionex.de>
date Fri, 18 Jan 2008 19:13:47 +0100
parents 0c78fa47d476
children 380bad9f6852
line wrap: on
line diff
--- a/dwt/dwthelper/File.d	Fri Jan 18 17:00:39 2008 +0100
+++ b/dwt/dwthelper/File.d	Fri Jan 18 19:13:47 2008 +0100
@@ -18,6 +18,13 @@
 
     private tango.io.FilePath.FilePath mFilePath;
 
+    static this(){
+        separator = tango.io.FileConst.FileConst.PathSeparatorString;
+        separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar;
+        pathSeparator = tango.io.FileConst.FileConst.SystemPathString;
+        pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar;
+    }
+
     public this ( char[] pathname ){
         mFilePath = new tango.io.FilePath.FilePath( pathname );
     }
@@ -189,13 +196,6 @@
         return null;
     }
 
-    public static void static_this(){
-        separator = tango.io.FileConst.FileConst.PathSeparatorString;
-        separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar;
-        pathSeparator = tango.io.FileConst.FileConst.SystemPathString;
-        pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar;
-    }
-
 
 }