[svn] r5875: nemerle/trunk/ncc/main.n

malekith svnadmin at nemerle.org
Wed Nov 2 23:37:09 CET 2005


Log:
Now it should work,

Author: malekith
Date: Wed Nov  2 23:37:08 2005
New Revision: 5875

Modified:
   nemerle/trunk/ncc/main.n

Modified: nemerle/trunk/ncc/main.n
==============================================================================
--- nemerle/trunk/ncc/main.n	(original)
+++ nemerle/trunk/ncc/main.n	Wed Nov  2 23:37:08 2005
@@ -52,21 +52,26 @@
 {
   module MainClass
   {
+    public Main () : void
+    {
+      if (needs_bigger_stack ()) {
+        def thread = System.Threading.Thread (main_with_catching, 0x200000);
+        thread.Start ();
+        thread.Join ();
+      } else
+        main_with_catching ()
+    }
+    
     needs_bigger_stack () : bool
     {
-      IntPtr.Size > 4 &&
+      System.IntPtr.Size > 4 &&
       typeof (object).Assembly.GetType ("System.RuntimeType") != null
     }
     
-    public Main () : void
+    main_with_catching () : void
     {
       Message.InitOutput (System.Console.Out);
       try {
-        if (needs_bigger_stack ()) {
-          def thread = System.Threading.Thread (do_main, 0x200000);
-          thread.Start ();
-          thread.Join ();
-        } else
           do_main ()
       } catch {
         | e is System.IO.FileNotFoundException =>



More information about the svn mailing list