diff tango/tango/io/Console.d @ 133:44a95ac7368a trunk

[svn r137] Many fixes towards tango.io.Console working, but not quite there yet... In particular, assertions has been fixed to include file/line info, and much more!
author lindquist
date Mon, 14 Jan 2008 05:11:54 +0100
parents 1700239cab2e
children 0e28624814e8
line wrap: on
line diff
--- a/tango/tango/io/Console.d	Fri Jan 11 17:57:40 2008 +0100
+++ b/tango/tango/io/Console.d	Mon Jan 14 05:11:54 2008 +0100
@@ -621,14 +621,21 @@
 
 ******************************************************************************/
 
+extern(C) int printf(char*, ...);
+
 static this ()
 {
+        printf("STATIC INIT FOR CONSOLE\n");
+        printf("Cin\n");
         auto conduit = new Console.Conduit (0);
+        assert(conduit);
         Cin  = new Console.Input (conduit, conduit.redirected);
 
+        printf("Cout\n");
         conduit = new Console.Conduit (1);
         Cout = new Console.Output (conduit, conduit.redirected);
 
+        printf("Cerr\n");
         conduit = new Console.Conduit (2);
         Cerr = new Console.Output (conduit, conduit.redirected);
 }