Tango / Phobos / future dilemma

Chris Wright dhasenan at gmail.com
Tue May 27 17:13:20 PDT 2008

Koroskin Denis wrote:
> C++ has both C-style stdio (fopen, fwrite, etc) and custom iostreams.
> Both of them have overlapping functionality, and no one cares.
> Since D can directly interface with C code and we can't throw away that,
> C-style IO _will_ present in D. And that's Ok, I don't see any problems
> here. Guys that think that it's the right way would use that, others would
> use Tango way.

In Tango, you can use printf and friends if you import tango.stdc.stdio. 
So even if you use tango, you don't have to do io the tango way. It's 
just that you have to write your own wrappers for it if you want your 
code to look like tango.io.Stdout and share buffers with C io.

More information about the Digitalmars-d-learn mailing list