let's talk about output ranges

Adam D. Ruppe destructionator at gmail.com
Thu Feb 6 11:23:20 PST 2014


In the other thread:

Andrei said:
>.flush() or .done() to mark the end of several writes

similar to my finish

> .clear() to clear the range (useful if e.g. it's implemented as 
> a
> slice with appending)

similar to my start, but start is allowed to do required 
initializtions too whereas clear doesn't sound as required.


Dmitry said:
> .reserve(n) to notify underlying sink that it n items are
> coming (it should preallocate etc.)

yes, this may also be a noop on some objects


More information about the Digitalmars-d mailing list