--- dmain2.d.127 Thu Jun 16 21:54:02 2005 +++ dmain2.d Sun Jun 19 21:35:32 2005 @@ -8,6 +8,7 @@ import std.c.stdio; import std.c.stdlib; import std.string; +import std.stdio; extern (C) void _STI_monitor_staticctor(); extern (C) void _STD_monitor_staticdtor(); @@ -75,8 +76,7 @@ } catch (Object o) { - printf("Error: "); - o.print(); + fwritefln(stderr, "Error: %s", o.toString); exit(EXIT_FAILURE); } --- thread.d.127 Thu Jun 16 21:53:58 2005 +++ thread.d Sun Jun 19 21:35:34 2005 @@ -21,6 +21,7 @@ */ module std.thread; +private import std.stdio; //debug=thread; @@ -294,8 +295,7 @@ } catch (Object o) { - printf("Error: "); - o.print(); + fwritefln(stderr, "Error: %s", o.toString); result = 1; } @@ -337,7 +337,7 @@ allThreads[0].hdl = GetCurrentThread(); } } - + /******************************************** * Returns the handle of the current thread. * This is needed because GetCurrentThread() always returns -2 which @@ -750,8 +750,7 @@ } catch (Object o) { - printf("Error: "); - o.print(); + fwritefln(stderr, "Error: %s", o.toString); result = 1; }