What is the std.stream replacement?

Artem Tarasov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 20 04:58:16 PDT 2015


On Monday, 20 July 2015 at 00:58:20 UTC, Charles Hixson wrote:
> I have DMD64 D Compiler v2.067.1 installed, and in the 
> documentation of phobos what it says about std.stream is "don't 
> use it on new code".  It doesn't, however, appear to offer any 
> replacement. Certainly std.file, std.stdio, and std.path aren't 
> replacements.
>
> So what *is* the appropriate replacement?  More specificly, 
> what should one use for binary i/o, particularly random access 
> binary i/o?  With fixed block size.

There's none :(
You can use std.stdio.File but it's not as flexible.
This note in the documentation was there 3 years ago, and there's 
no replacement on the horizon, except some work in progress by 
Steven Schveighoffer 
(https://github.com/schveiguy/phobos/tree/new-io3)


More information about the Digitalmars-d-learn mailing list