std.stream replacement

sclytrack via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 16 09:09:49 PDT 2014


On Saturday, 14 December 2013 at 15:16:50 UTC, Jacob Carlborg 
wrote:
> On 2013-12-14 15:53, Steven Schveighoffer wrote:
>
>> I realize this is really old, and I sort of dropped off the D 
>> cliff
>> because all of a sudden I had 0 extra time.
>>
>> But I am going to get back into working on this (if it's still 
>> an issue,
>> I still need to peruse the NG completely to see what has 
>> happened in the
>> last few months).
>
> Yeah, it still need to be replaced. In this case you can have a 
> look at the review queue to see what's being worked on:
>
> http://wiki.dlang.org/Review_Queue


SINK, TAP
---------


https://github.com/schveiguy/phobos/blob/new-io/std/io.d

What about adding a single property named sink or tap depending
on how you want the chain to be. That could be either a struct or
a class. Each sink would provide another interface.


struct/class ArchiveWriter(SINK)
{
	@property sink		//pointer to sink
}



writer.sink.sink.sink
arch.sink.sink.sink.open("filename");


ArchiveReader!(InputStream) * reader;


"Warning: As usual I don't know what I'm talking about."









More information about the Digitalmars-d mailing list