On Monday, 23 May 2016 at 03:03:12 UTC, Jon Degenhardt wrote:
On Sunday, 22 May 2016 at 23:01:07 UTC, Ali Çehreli wrote:
On 05/22/2016 11:59 AM, Jon Degenhardt wrote:
[...]
Currently not possible. Enhancement request perhaps?
Looking at the implementation, setting its 'offset' member
seems to work. Based on example from documentation:
import std.outbuffer;
void main() {
OutBuffer b = new OutBuffer();
b.writefln("a%sb", 16);
assert(b.toString() == "a16b\n");
b.offset = 0;
b.writefln("a%sb", 16);
assert(b.toString() == "a16b\n");
}
Bug report perhaps? :)
Ali
Thanks. Enhancement request:
https://issues.dlang.org/show_bug.cgi?id=16062
It was once proposed to have start & stop, which could also imply
that it's resettable:
https://github.com/dlang/phobos/pull/3362