[phobos] escaping FILE's buffering tyranny

Sean Kelly sean at invisibleduck.org
Sat Sep 11 11:57:48 PDT 2010


On Sep 11, 2010, at 7:03 AM, Andrei Alexandrescu wrote:

> On 9/11/10 3:23 CDT, Lars Tandle Kyllingstad wrote:
>> How standardised is the FILE structure?  Are we sure it's the same
>> across different C stdlibs on the various platforms?  (Or is D defined
>> to work only with GNU's C library on POSIX, like it is with DMC on
>> Windows?)
> 
> Looking in core.stdc.stdio, either D knows the exact FILE layout, or it static assert(false).

It's possible that a platform could define it as an opaque type by having it contain a byte array, but so far they all provide the contents.


More information about the phobos mailing list