Overhauling the notion of output range

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jul 12 14:25:43 PDT 2010


On 07/12/2010 02:41 PM, Steven Schveighoffer wrote:
> I'm unsure how it will work either. I admit now that I didn't think
> through how this will be used.

It's very simple. As far as a user of an output range is concerned, they 
should write stuff like:

put(r, '[');
char[] someBuf;
put(r, someBuf);
put(r, ", ");
put(r, ']');

in confidence that things are reasonably efficient.


Andrei


More information about the Digitalmars-d mailing list