On Monday, 23 May 2016 at 03:03:12 UTC, 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
Is there a consensus on this? Does this really need a clear
method seeing as though you can reset the offset directly?