Reset all Members of a Aggregate Instance

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at
Sat Dec 5 07:48:16 PST 2015

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:


More information about the Digitalmars-d-learn mailing list