On 12/05/2015 01:32 AM, Observer wrote:

Won't clear(c); do the trick?  ((pp187-188 of TDPL)

clear() has been renamed as destroy() but it won't work by itself because the OP wants a reusable object. I think, in addition to destroy(), the default constructor should be run:

  https://dlang.org/phobos/object.html#.destroy

Ali

Reply via email to