Posted: 09/14/08 02:17:32
In my group, some programmer have c/c++ experiense, they use printf, cout in multi thread program when they use c/c++.
When they turn to d, they read the document and find Stdout, they try to use it in little test program, it is ok. And they remember it.
Next time, they need to do output in a real project(multi thread): "Oh, printf --- Stdout", ok, it is.
So, problem occured, and, cause wired things to debug :(
If Stdout keep to be thread-unsafe, I think
"
Stdout/Stderr, the standard way for formatted console output. This is Tango's printf.
"
should metion this, like that, "This is Tangos printf --- BUT THREAD-UNSAFE ! "
My opinion is: provide a safe default Stdout( D's printf), and a fast thread-unsafe version as backup.