"Steven Schveighoffer" wrote in message
news:op.xcnxwzc8eav7ka@stevens-macbook-pro.local...
I would also mention that a "band-aid" fix, if you are always using
x.length = 0, is to special case that in the runtime to automatically
reset the used size to 0 as well. This is a specialized application, I
would think tweaking the runtime is a possibility, and a temporary fix
like this until you can update your code would at least provide an
intermediate solution.
That would risk breaking code in druntime/phobos.