Sun, 29 Nov 2009 15:30:14 -0500, Adam D. Ruppe wrote: > On Sun, Nov 29, 2009 at 07:12:50PM +0000, retard wrote: >> after using D1 and Tango for couple of years we decided to experiment >> with D2 and Phobos in a small scale project. For some reason the mostly >> flat package hierarchy seemed rather confusing. > > Are you familiar with C's standard library? Phobos is loosely based on > it, so if you can think of where you'd find it in C, it won't be far off > in phobos.
Nope, I come from Java/C# land. > >> Entities like 'stdin' seem to have no documentation at all. What should >> I import to get it, what interfaces does it implement etc. > > http://digitalmars.com/d/2.0/phobos/std_stdio.html#File > stdin is just an instance of that struct - directly analogous to how > stdin in C is a FILE*. (D actually used C's FILE* directly for the > longest time.) I got it now. Note that stdin and stdout aren't defined anywhere. They're mentioned only briefly in the examples of the informal documentation.
