Add workaround for old C# compilers
authorMiguel de Icaza <miguel@gnome.org>
Fri, 5 Sep 2008 05:23:34 +0000 (05:23 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 5 Sep 2008 05:23:34 +0000 (05:23 -0000)
svn path=/trunk/mcs/; revision=112357

mcs/mcs/ChangeLog
mcs/mcs/repl.cs

index 88942e21cb5b7855f9e148e08b78383e8845ae2f..b1803b9c1d1680cc9b28dea7cbee7786cde15a9a 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-05  Miguel de Icaza  <miguel@novell.com>
+
+       * repl.cs: Add workaround for old compilers.
+
 2008-09-04  Jb Evain  <jbevain@novell.com>
 
        * repl.cs (PrettyPrint): pretty print everything that
@@ -40,6 +44,9 @@
 
 2008-09-04  Miguel de Icaza  <miguel@novell.com>
 
+       * assign.cs (Assign.DoResolve): Perform the type conversions
+       checks before we attempt to initialize `New' initializers. 
+
        * repl.cs (PrettyPrint): Add Hashtable prettyprint
 
        * anonymous.cs (AnonymousTypeClass): On EvalMode make the class
index 8aba3d1a8a5019bcb5908a0091f52688bc051099..21276c655866535557169ad9262e0a831fd1faf0 100644 (file)
@@ -138,6 +138,11 @@ namespace Mono.CSharp {
 
                }
 
+#if BOOTSTRAP_WITH_OLDLIB
+               static void LoadStartupFiles ()
+               {
+               }
+#else
                static void LoadStartupFiles ()
                {
                        string dir = Path.Combine (
@@ -161,6 +166,7 @@ namespace Mono.CSharp {
                                }
                        }
                }
+#endif
 
                static void ReadEvalPrintLoopWith (ReadLiner readline)
                {
@@ -189,7 +195,6 @@ namespace Mono.CSharp {
 
                        InitializeUsing ();
 
-
                        LoadStartupFiles ();
                        ReadEvalPrintLoopWith (GetLine);