www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What is the std.stream replacement?

reply Charles Hixson via Digitalmars-d-learn writes:
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.
Jul 19 2015
parent "Artem Tarasov" <lomereiter gmail.com> writes:
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)
Jul 20 2015